9397
|
1 |
#
|
|
2 |
# spec file for package SUNWpilot-link
|
|
3 |
#
|
|
4 |
# includes module(s): pilot-link
|
|
5 |
#
|
|
6 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
|
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}
|
|
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
21 |
Source1: %{name}-manpages-0.1.tar.gz
|
|
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
|
|
49 |
export LDFLAGS="-L/usr/lib -R/usr/lib -L%{libusb_prefix}/lib -R%{libusb_prefix}/lib"
|
|
50 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
|
|
51 |
export MSGFMT="/usr/bin/msgfmt"
|
|
52 |
export PERL5LIB=%{_prefix}/perl5/site_perl/5.6.1/sun4-solaris-64int
|
|
53 |
export PKG_CONFIG_PATH=%{_pkg_config_path}
|
|
54 |
export CFLAGS="%optflags -I%{libusb_prefix}/include -D_POSIX_PTHREAD_SEMANTICS"
|
|
55 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
56 |
%plink.build -d %name-%version
|
|
57 |
|
|
58 |
%install
|
|
59 |
rm -rf $RPM_BUILD_ROOT
|
|
60 |
%plink.install -d %name-%version
|
|
61 |
|
|
62 |
# remove unused files
|
|
63 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/pilot-link
|
|
64 |
cd $RPM_BUILD_ROOT%{_bindir}
|
|
65 |
for i in `ls |grep -v pilot-xfer`; do rm -rf $i; done
|
|
66 |
|
|
67 |
# install man page
|
|
68 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
69 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
70 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
71 |
|
|
72 |
%clean
|
|
73 |
rm -rf $RPM_BUILD_ROOT
|
|
74 |
|
|
75 |
%files
|
|
76 |
%defattr (-, root, bin)
|
|
77 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
78 |
%{_bindir}/*
|
|
79 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
80 |
%{_libdir}/*.so*
|
|
81 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
82 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
83 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
84 |
%{_mandir}/*/*
|
|
85 |
|
|
86 |
%files devel
|
|
87 |
%defattr (-, root, bin)
|
|
88 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
89 |
%{_includedir}/libpisock/*
|
|
90 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
91 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
92 |
%{_libdir}/pkgconfig/*
|
|
93 |
%dir %attr (0755, root, sys) %dir %{_datadir}
|
|
94 |
%dir %attr (0755, root, other) %{_datadir}/aclocal
|
|
95 |
%{_datadir}/aclocal/*
|
|
96 |
|
|
97 |
%changelog
|
|
98 |
* Mon Feb 5 2007 - [email protected]
|
|
99 |
- Add Requires SUNWbash after check-deps.pl run.
|
|
100 |
|
|
101 |
* Thu Nov 30 2006 - [email protected]
|
|
102 |
- initial version created
|