author | ginnchen |
Mon, 12 Apr 2010 08:07:21 +0000 | |
branch | gnome-2-28 |
changeset 18675 | d625b72c91d8 |
parent 16504 | 017fca0b6547 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWpilot-link |
|
3 |
# |
|
4 |
# includes module(s): pilot-link |
|
5 |
# |
|
15154 | 6 |
# Copyright 2009 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 |
# |
|
16504 | 10 |
%define owner wangke |
9397 | 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} |
|
12990 | 19 |
Source: %{name}-manpages-0.1.tar.gz |
9397 | 20 |
SUNW_BaseDir: %{_basedir} |
11974 | 21 |
SUNW_Copyright: %{name}.copyright |
9397 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
23 |
||
24 |
%include default-depend.inc |
|
25 |
Requires: SUNWlibms |
|
26 |
Requires: SUNWlibpopt |
|
27 |
Requires: SUNWlibusb |
|
28 |
Obsoletes:SUNWpltlk |
|
29 |
BuildRequires: SUNWlibpopt-devel |
|
30 |
BuildConflicts: SUNWgnome-pilot-link |
|
31 |
BuildConflicts: SUNWgnome-pilot-link-root |
|
32 |
BuildConflicts: SUNWgnome-pilot-link-share |
|
33 |
BuildConflicts: SUNWgnome-pilot-link-devel |
|
34 |
BuildConflicts: SUNWgnome-pilot-link-devel-share |
|
35 |
||
36 |
%package devel |
|
37 |
Summary: %{summary} - development files |
|
38 |
SUNW_BaseDir: %{_basedir} |
|
39 |
%include default-depend.inc |
|
40 |
Requires: %{name} |
|
41 |
||
42 |
%prep |
|
43 |
rm -rf %name-%version |
|
44 |
mkdir -p %name-%version |
|
45 |
%plink.prep -d %name-%version |
|
46 |
cd %{_builddir}/%name-%version |
|
12990 | 47 |
gzcat %SOURCE0 | tar xf - |
9397 | 48 |
|
49 |
%build |
|
10616 | 50 |
export LDFLAGS="%{?arch_ldadd} -L%{libusb_prefix}/lib -R%{libusb_prefix}/lib" |
51 |
export CFLAGS="-I/usr/gnu/include %optflags -I%{libusb_prefix}/include -D_POSIX_PTHREAD_SEMANTICS" |
|
9397 | 52 |
export RPM_OPT_FLAGS="$CFLAGS" |
53 |
%plink.build -d %name-%version |
|
54 |
||
55 |
%install |
|
56 |
rm -rf $RPM_BUILD_ROOT |
|
57 |
%plink.install -d %name-%version |
|
58 |
||
59 |
# 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
|
60 |
rm -r $RPM_BUILD_ROOT%{_datadir}/pilot-link |
11251 | 61 |
rm -r $RPM_BUILD_ROOT%{_mandir}/man7 |
62 |
cd $RPM_BUILD_ROOT%{_mandir}/man1 |
|
63 |
for i in `ls |grep -v pilot-xfer`; do rm -r $i; done |
|
9397 | 64 |
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
|
65 |
for i in `ls |grep -v pilot-xfer`; do rm -r $i; done |
12990 | 66 |
cd %{_builddir}/%name-%version/sun-manpages |
67 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
9397 | 68 |
|
69 |
%clean |
|
70 |
rm -rf $RPM_BUILD_ROOT |
|
71 |
||
72 |
%files |
|
73 |
%defattr (-, root, bin) |
|
74 |
%dir %attr (0755, root, bin) %{_bindir} |
|
75 |
%{_bindir}/* |
|
76 |
%dir %attr (0755, root, bin) %{_libdir} |
|
77 |
%{_libdir}/*.so* |
|
11244 | 78 |
%dir %attr (0755, root, sys) %{_datadir} |
79 |
%dir %attr(0755, root, bin) %{_mandir} |
|
80 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
81 |
%{_mandir}/man1/* |
|
12990 | 82 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
83 |
%{_mandir}/man3/* |
|
13635 | 84 |
%doc(bzip2) -d pilot-link-%{plink.version} COPYING COPYING.LIB |
85 |
%doc(bzip2) -d pilot-link-%{plink.version} NEWS ChangeLog README |
|
86 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
9397 | 87 |
|
88 |
%files devel |
|
89 |
%defattr (-, root, bin) |
|
90 |
%dir %attr (0755, root, bin) %{_includedir} |
|
91 |
%{_includedir}/libpisock/* |
|
92 |
%dir %attr (0755, root, bin) %{_libdir} |
|
93 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
94 |
%{_libdir}/pkgconfig/* |
|
95 |
%dir %attr (0755, root, sys) %dir %{_datadir} |
|
96 |
%dir %attr (0755, root, other) %{_datadir}/aclocal |
|
97 |
%{_datadir}/aclocal/* |
|
98 |
||
99 |
%changelog |
|
13635 | 100 |
* Wed Sept 17 2008 - [email protected] |
101 |
- Modify copyright based on new process. |
|
12990 | 102 |
* Fri Aug 1 2008 - [email protected] |
103 |
- Add manpages. |
|
11974 | 104 |
* Mon Mar 31 2008 - [email protected] |
105 |
- Add copyright |
|
11251 | 106 |
* Wed Nov 28 2007 - [email protected] |
107 |
- Remove man7 files and most man1 files as they are not useful. |
|
11244 | 108 |
* Tue Nov 27 2007 - [email protected] |
109 |
- 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
|
110 |
* 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
|
111 |
- 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
|
112 |
dir and all %{_bindir} files except pilot-xfer as the files are not needed. |
11174 | 113 |
* Tue Nov 13 2007 - [email protected] |
114 |
- Remove some unnecessary files from the package. |
|
10616 | 115 |
* Fri Oct 5 2007 - [email protected] |
116 |
- add /usr/gnu stuff to CFLAGS and LDFLAGS so that GNU libintl and |
|
117 |
libiconv are used (with --with-gnu-iconv) |
|
9805 | 118 |
* Sun Apr 30 2007 - [email protected] |
119 |
- Remove a manpage from manpages/man1 to fix #6550823 |
|
9397 | 120 |
* Mon Feb 5 2007 - [email protected] |
121 |
- Add Requires SUNWbash after check-deps.pl run. |
|
122 |
* Thu Nov 30 2006 - [email protected] |
|
123 |
- initial version created |