SUNWpilot-link.spec
author ginnchen
Mon, 12 Apr 2010 08:07:21 +0000
branchgnome-2-28
changeset 18675 d625b72c91d8
parent 16504 017fca0b6547
permissions -rw-r--r--
2010-04-12 Ginn Chen <[email protected]> * SUNWfirefox.spec: Fix the build issue of Firefox 3.6.3.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package SUNWpilot-link
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# includes module(s): pilot-link
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
#
15154
250fda601b85 2009-02-19 Halton Huo <[email protected]>
halton
parents: 13635
diff changeset
     6
# Copyright 2009 Sun Microsystems, Inc.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
16504
017fca0b6547 2009-09-09 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    10
%define owner wangke
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
%include Solaris.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
%use plink = pilot-link.spec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
%define libusb_prefix /usr/sfw
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Name:          SUNWpilot-link
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Summary:       %{plink.summary}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Version:       %{plink.version}
12990
acf42758d355 * SUNWpilot-link.spec: Add manpages
qc161282
parents: 11974
diff changeset
    19
Source:	       %{name}-manpages-0.1.tar.gz
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
SUNW_BaseDir:  %{_basedir}
11974
ddf305e57247 *copyright/SUNWgnome-pilot.copyright: added.
jyu_mit
parents: 11251
diff changeset
    21
SUNW_Copyright:  %{name}.copyright
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
Requires: SUNWlibms
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
Requires: SUNWlibpopt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
Requires: SUNWlibusb
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Obsoletes:SUNWpltlk
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
BuildRequires: SUNWlibpopt-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
BuildConflicts: SUNWgnome-pilot-link
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
BuildConflicts: SUNWgnome-pilot-link-root
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
BuildConflicts: SUNWgnome-pilot-link-share
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
BuildConflicts: SUNWgnome-pilot-link-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
BuildConflicts: SUNWgnome-pilot-link-devel-share
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
Summary:       %{summary} - development files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
SUNW_BaseDir:  %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
Requires:      %{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
rm -rf %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
mkdir -p %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
%plink.prep -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
cd %{_builddir}/%name-%version
12990
acf42758d355 * SUNWpilot-link.spec: Add manpages
qc161282
parents: 11974
diff changeset
    47
gzcat %SOURCE0 | tar xf -
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
%build
10616
3ea3bf84b2b5 2007-10-05 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9805
diff changeset
    50
export LDFLAGS="%{?arch_ldadd} -L%{libusb_prefix}/lib -R%{libusb_prefix}/lib"
3ea3bf84b2b5 2007-10-05 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9805
diff changeset
    51
export CFLAGS="-I/usr/gnu/include %optflags -I%{libusb_prefix}/include -D_POSIX_PTHREAD_SEMANTICS"
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
export RPM_OPT_FLAGS="$CFLAGS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
%plink.build -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
%plink.install -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    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
4ad3f4c7b05a 2007-11-28 Damien Carbery <[email protected]>
dcarbery
parents: 11244
diff changeset
    61
rm -r $RPM_BUILD_ROOT%{_mandir}/man7
4ad3f4c7b05a 2007-11-28 Damien Carbery <[email protected]>
dcarbery
parents: 11244
diff changeset
    62
cd $RPM_BUILD_ROOT%{_mandir}/man1
4ad3f4c7b05a 2007-11-28 Damien Carbery <[email protected]>
dcarbery
parents: 11244
diff changeset
    63
for i in `ls |grep -v pilot-xfer`; do rm -r $i; done
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    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
acf42758d355 * SUNWpilot-link.spec: Add manpages
qc161282
parents: 11974
diff changeset
    66
cd %{_builddir}/%name-%version/sun-manpages
acf42758d355 * SUNWpilot-link.spec: Add manpages
qc161282
parents: 11974
diff changeset
    67
make install DESTDIR=$RPM_BUILD_ROOT
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
%dir %attr (0755, root, bin) %{_bindir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
%{_libdir}/*.so*
11244
35228d87666f 2007-11-27 Damien Carbery <[email protected]>
dcarbery
parents: 11237
diff changeset
    78
%dir %attr (0755, root, sys) %{_datadir}
35228d87666f 2007-11-27 Damien Carbery <[email protected]>
dcarbery
parents: 11237
diff changeset
    79
%dir %attr(0755, root, bin) %{_mandir}
35228d87666f 2007-11-27 Damien Carbery <[email protected]>
dcarbery
parents: 11237
diff changeset
    80
%dir %attr(0755, root, bin) %{_mandir}/man1
35228d87666f 2007-11-27 Damien Carbery <[email protected]>
dcarbery
parents: 11237
diff changeset
    81
%{_mandir}/man1/*
12990
acf42758d355 * SUNWpilot-link.spec: Add manpages
qc161282
parents: 11974
diff changeset
    82
%dir %attr(0755, root, bin) %{_mandir}/man3
acf42758d355 * SUNWpilot-link.spec: Add manpages
qc161282
parents: 11974
diff changeset
    83
%{_mandir}/man3/*
13635
bf16a6faae56 Add new copyright format.
jyu_mit
parents: 12990
diff changeset
    84
%doc(bzip2) -d pilot-link-%{plink.version} COPYING COPYING.LIB 
bf16a6faae56 Add new copyright format.
jyu_mit
parents: 12990
diff changeset
    85
%doc(bzip2) -d pilot-link-%{plink.version} NEWS ChangeLog README
bf16a6faae56 Add new copyright format.
jyu_mit
parents: 12990
diff changeset
    86
%dir %attr (0755, root, other) %{_datadir}/doc
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
%dir %attr (0755, root, bin) %{_includedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%{_includedir}/libpisock/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%dir %attr (0755, root, sys) %dir %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%dir %attr (0755, root, other) %{_datadir}/aclocal
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%{_datadir}/aclocal/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%changelog
13635
bf16a6faae56 Add new copyright format.
jyu_mit
parents: 12990
diff changeset
   100
* Wed Sept 17 2008 - [email protected]
bf16a6faae56 Add new copyright format.
jyu_mit
parents: 12990
diff changeset
   101
- Modify copyright based on new process.
12990
acf42758d355 * SUNWpilot-link.spec: Add manpages
qc161282
parents: 11974
diff changeset
   102
* Fri Aug 1 2008 - [email protected]
acf42758d355 * SUNWpilot-link.spec: Add manpages
qc161282
parents: 11974
diff changeset
   103
- Add manpages.
11974
ddf305e57247 *copyright/SUNWgnome-pilot.copyright: added.
jyu_mit
parents: 11251
diff changeset
   104
* Mon Mar 31 2008 - [email protected]
ddf305e57247 *copyright/SUNWgnome-pilot.copyright: added.
jyu_mit
parents: 11251
diff changeset
   105
- Add copyright
11251
4ad3f4c7b05a 2007-11-28 Damien Carbery <[email protected]>
dcarbery
parents: 11244
diff changeset
   106
* Wed Nov 28 2007 - [email protected]
4ad3f4c7b05a 2007-11-28 Damien Carbery <[email protected]>
dcarbery
parents: 11244
diff changeset
   107
- Remove man7 files and most man1 files as they are not useful.
11244
35228d87666f 2007-11-27 Damien Carbery <[email protected]>
dcarbery
parents: 11237
diff changeset
   108
* Tue Nov 27 2007 - [email protected]
35228d87666f 2007-11-27 Damien Carbery <[email protected]>
dcarbery
parents: 11237
diff changeset
   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
ef985490069c * base-specs/pilot-link.spec: Bump to 0.12.3.
jyu_mit
parents: 10616
diff changeset
   113
* Tue Nov 13 2007 - [email protected]
ef985490069c * base-specs/pilot-link.spec: Bump to 0.12.3.
jyu_mit
parents: 10616
diff changeset
   114
- Remove some unnecessary files from the package.
10616
3ea3bf84b2b5 2007-10-05 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9805
diff changeset
   115
* Fri Oct  5 2007 - [email protected]
3ea3bf84b2b5 2007-10-05 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9805
diff changeset
   116
- add /usr/gnu stuff to CFLAGS and LDFLAGS so that GNU libintl and
3ea3bf84b2b5 2007-10-05 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9805
diff changeset
   117
  libiconv are used (with --with-gnu-iconv)
9805
162501100a30 * SUNWpilot-link.spec:
jyu_mit
parents: 9397
diff changeset
   118
* Sun Apr 30 2007 - [email protected]
162501100a30 * SUNWpilot-link.spec:
jyu_mit
parents: 9397
diff changeset
   119
- Remove a manpage from manpages/man1 to fix #6550823
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
* Mon Feb  5 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
- Add Requires SUNWbash after check-deps.pl run.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
* Thu Nov 30 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
- initial version created