author | laca |
Tue, 05 Aug 2008 04:33:16 +0000 | |
branch | gnome-2-22 |
changeset 12486 | 7fa2b2b0dddb |
parent 11974 | ddf305e57247 |
child 12990 | acf42758d355 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWpilot-link |
|
3 |
# |
|
4 |
# includes module(s): pilot-link |
|
5 |
# |
|
10616 | 6 |
# Copyright 2007 Sun Microsystems, Inc. |
9397 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
10 |
# Owner: jyu_mit |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
%use plink = pilot-link.spec |
|
14 |
%define libusb_prefix /usr/sfw |
|
15 |
||
16 |
Name: SUNWpilot-link |
|
17 |
Summary: %{plink.summary} |
|
18 |
Version: %{plink.version} |
|
19 |
SUNW_BaseDir: %{_basedir} |
|
11974 | 20 |
SUNW_Copyright: %{name}.copyright |
9397 | 21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
22 |
||
23 |
%include default-depend.inc |
|
24 |
Requires: SUNWlibms |
|
25 |
Requires: SUNWlibpopt |
|
26 |
Requires: SUNWlibusb |
|
27 |
Obsoletes:SUNWpltlk |
|
28 |
BuildRequires: SUNWlibpopt-devel |
|
29 |
BuildConflicts: SUNWgnome-pilot-link |
|
30 |
BuildConflicts: SUNWgnome-pilot-link-root |
|
31 |
BuildConflicts: SUNWgnome-pilot-link-share |
|
32 |
BuildConflicts: SUNWgnome-pilot-link-devel |
|
33 |
BuildConflicts: SUNWgnome-pilot-link-devel-share |
|
34 |
||
35 |
%package devel |
|
36 |
Summary: %{summary} - development files |
|
37 |
SUNW_BaseDir: %{_basedir} |
|
38 |
%include default-depend.inc |
|
39 |
Requires: %{name} |
|
40 |
||
41 |
%prep |
|
42 |
rm -rf %name-%version |
|
43 |
mkdir -p %name-%version |
|
44 |
%plink.prep -d %name-%version |
|
45 |
cd %{_builddir}/%name-%version |
|
46 |
gzcat %SOURCE1 | tar xf - |
|
47 |
||
48 |
%build |
|
10616 | 49 |
export LDFLAGS="%{?arch_ldadd} -L%{libusb_prefix}/lib -R%{libusb_prefix}/lib" |
50 |
export CFLAGS="-I/usr/gnu/include %optflags -I%{libusb_prefix}/include -D_POSIX_PTHREAD_SEMANTICS" |
|
9397 | 51 |
export RPM_OPT_FLAGS="$CFLAGS" |
52 |
%plink.build -d %name-%version |
|
53 |
||
54 |
%install |
|
55 |
rm -rf $RPM_BUILD_ROOT |
|
56 |
%plink.install -d %name-%version |
|
57 |
||
58 |
# remove unused files |
|
11237
210de3a78d54
Fix SUNWpilot-link.spec %install and %files; Add more detail of changes to %changelog and ChangeLog.
dcarbery
parents:
11235
diff
changeset
|
59 |
rm -r $RPM_BUILD_ROOT%{_datadir}/pilot-link |
11251 | 60 |
rm -r $RPM_BUILD_ROOT%{_mandir}/man7 |
61 |
cd $RPM_BUILD_ROOT%{_mandir}/man1 |
|
62 |
for i in `ls |grep -v pilot-xfer`; do rm -r $i; done |
|
9397 | 63 |
cd $RPM_BUILD_ROOT%{_bindir} |
11237
210de3a78d54
Fix SUNWpilot-link.spec %install and %files; Add more detail of changes to %changelog and ChangeLog.
dcarbery
parents:
11235
diff
changeset
|
64 |
for i in `ls |grep -v pilot-xfer`; do rm -r $i; done |
9397 | 65 |
|
66 |
%clean |
|
67 |
rm -rf $RPM_BUILD_ROOT |
|
68 |
||
69 |
%files |
|
70 |
%defattr (-, root, bin) |
|
71 |
%dir %attr (0755, root, bin) %{_bindir} |
|
72 |
%{_bindir}/* |
|
73 |
%dir %attr (0755, root, bin) %{_libdir} |
|
74 |
%{_libdir}/*.so* |
|
11244 | 75 |
%dir %attr (0755, root, sys) %{_datadir} |
76 |
%dir %attr(0755, root, bin) %{_mandir} |
|
77 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
78 |
%{_mandir}/man1/* |
|
9397 | 79 |
|
80 |
%files devel |
|
81 |
%defattr (-, root, bin) |
|
82 |
%dir %attr (0755, root, bin) %{_includedir} |
|
83 |
%{_includedir}/libpisock/* |
|
84 |
%dir %attr (0755, root, bin) %{_libdir} |
|
85 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
86 |
%{_libdir}/pkgconfig/* |
|
87 |
%dir %attr (0755, root, sys) %dir %{_datadir} |
|
88 |
%dir %attr (0755, root, other) %{_datadir}/aclocal |
|
89 |
%{_datadir}/aclocal/* |
|
90 |
||
91 |
%changelog |
|
11974 | 92 |
* Mon Mar 31 2008 - [email protected] |
93 |
- Add copyright |
|
11251 | 94 |
* Wed Nov 28 2007 - [email protected] |
95 |
- Remove man7 files and most man1 files as they are not useful. |
|
11244 | 96 |
* Tue Nov 27 2007 - [email protected] |
97 |
- Add manpage dirs to %files to fix build. |
|
11237
210de3a78d54
Fix SUNWpilot-link.spec %install and %files; Add more detail of changes to %changelog and ChangeLog.
dcarbery
parents:
11235
diff
changeset
|
98 |
* Fri Nov 23 2007 - [email protected] |
210de3a78d54
Fix SUNWpilot-link.spec %install and %files; Add more detail of changes to %changelog and ChangeLog.
dcarbery
parents:
11235
diff
changeset
|
99 |
- Remove some unuseful files from the package. Remove %{_datadir}/pilot-link |
210de3a78d54
Fix SUNWpilot-link.spec %install and %files; Add more detail of changes to %changelog and ChangeLog.
dcarbery
parents:
11235
diff
changeset
|
100 |
dir and all %{_bindir} files except pilot-xfer as the files are not needed. |
11174 | 101 |
* Tue Nov 13 2007 - [email protected] |
102 |
- Remove some unnecessary files from the package. |
|
10616 | 103 |
* Fri Oct 5 2007 - [email protected] |
104 |
- add /usr/gnu stuff to CFLAGS and LDFLAGS so that GNU libintl and |
|
105 |
libiconv are used (with --with-gnu-iconv) |
|
9805 | 106 |
* Sun Apr 30 2007 - [email protected] |
107 |
- Remove a manpage from manpages/man1 to fix #6550823 |
|
9397 | 108 |
* Mon Feb 5 2007 - [email protected] |
109 |
- Add Requires SUNWbash after check-deps.pl run. |
|
110 |
* Thu Nov 30 2006 - [email protected] |
|
111 |
- initial version created |