日本OpenSolaris Users Group有志による、レポジトリサーバ作成のためのspecファイル群です。
Revision | c7f1688c9082b570487843e999ef49e6d9352013 (tree) |
---|---|
Time | 2013-05-04 12:56:07 |
Author | YAMAMOTO Takashi <yamachan@self...> |
Commiter | YAMAMOTO Takashi |
SFElibmms: base_specs に移動
@@ -13,9 +13,13 @@ | ||
13 | 13 | %include Solaris.inc |
14 | 14 | %include packagenamemacros.inc |
15 | 15 | %define cc_is_gcc 0 |
16 | -%define _gpp g++ | |
16 | +%define _prefix /usr | |
17 | + | |
18 | +%ifarch amd64 sparcv9 | |
19 | +%include arch64.inc | |
20 | +%use libmms_64 = libmms.spec | |
21 | +%endif | |
17 | 22 | %include base.inc |
18 | -%define _prefix /usr | |
19 | 23 | %use libmms = libmms.spec |
20 | 24 | |
21 | 25 | Name: SFElibmms |
@@ -40,6 +44,7 @@ | ||
40 | 44 | BuildRequires: %{pnm_buildrequires_system_library} |
41 | 45 | |
42 | 46 | %package devel |
47 | +IPS_Package_Name: library/video/libmms/developer | |
43 | 48 | Summary: %{summary} - development files |
44 | 49 | SUNW_BaseDir: %{_basedir} |
45 | 50 | %include default-depend.inc |
@@ -48,16 +53,28 @@ | ||
48 | 53 | %prep |
49 | 54 | rm -rf %name-%version |
50 | 55 | mkdir -p %name-%version |
51 | -%libmms.prep -d %name-%version | |
56 | + | |
57 | +%ifarch amd64 sparcv9 | |
58 | +mkdir %name-%version/%_arch64 | |
59 | +%libmms_64.prep -d %name-%version/%_arch64 | |
60 | +%endif | |
61 | + | |
62 | +mkdir %name-%version/%{base_arch} | |
63 | +%libmms.prep -d %name-%version/%{base_arch} | |
52 | 64 | |
53 | 65 | %build |
54 | -#export CFLAGS="%optflags" | |
55 | -#export RPM_OPT_FLAGS="$CFLAGS" | |
56 | -%libmms.build -d %name-%version | |
66 | +%ifarch amd64 sparcv9 | |
67 | +%libmms_64.build -d %name-%version/%_arch64 | |
68 | +%endif | |
69 | + | |
70 | +%libmms.build -d %name-%version/%{base_arch} | |
57 | 71 | |
58 | 72 | %install |
59 | 73 | rm -rf $RPM_BUILD_ROOT |
60 | -%libmms.install -d %name-%version | |
74 | +%ifarch amd64 sparcv9 | |
75 | +%libmms_64.install -d %name-%version/%_arch64 | |
76 | +%endif | |
77 | +%libmms.install -d %name-%version/%{base_arch} | |
61 | 78 | |
62 | 79 | %clean |
63 | 80 | rm -rf $RPM_BUILD_ROOT |
@@ -84,6 +101,8 @@ | ||
84 | 101 | %endif |
85 | 102 | |
86 | 103 | %changelog |
104 | +* Sat May 03 2013 - YAMAMOTO Takashi <yamachan@selfnavi.com> | |
105 | +- to use same spec file | |
87 | 106 | * Thr May 01 2013 - YAMAMOTO Takashi <yamachan@selfnavi.com> |
88 | 107 | - 64 bit ready |
89 | 108 | * Wed Jul 20 2011 - Alex Viskovatoff |
@@ -0,0 +1,79 @@ | ||
1 | +# | |
2 | +# spec file for package libmms | |
3 | +# | |
4 | +# Copyright 2008 Sun Microsystems, Inc. | |
5 | +# This file and all modifications and additions to the pristine | |
6 | +# package are under the same license as the package itself. | |
7 | +# | |
8 | +# Owner:halton | |
9 | +# bugdb: http://bugs.launchpad.net/libmms/+bug/ | |
10 | +# | |
11 | + | |
12 | +Name: libmms | |
13 | +Summary: mms stream protocol library | |
14 | +Group: Libraries/Multimedia | |
15 | +Version: 0.6.2 | |
16 | +Release: 1 | |
17 | +Distribution: Java Desktop System | |
18 | +Vendor: Sun Microsystems, Inc. | |
19 | +URL: http://sourceforge.net/projects/libmms/ | |
20 | +License: LGPL | |
21 | +Source: %{sf_download}/%{name}/%{name}-%{version}.tar.gz | |
22 | +BuildRoot: %{_tmppath}/%{name}-%{version}-root | |
23 | +SUNW_BaseDir: %{_basedir} | |
24 | +%include default-depend.inc | |
25 | + | |
26 | +%description | |
27 | +libmms is a library implementing the mms streaming protocol | |
28 | + | |
29 | +%package devel | |
30 | +Summary: Libraries and includefiles for developing with libmms | |
31 | +Group: Development/Libraries | |
32 | + | |
33 | +%description devel | |
34 | +This paackage provides the necessary development headers and libraries | |
35 | +to allow you to devel with libmms | |
36 | + | |
37 | +%prep | |
38 | +%setup -q | |
39 | + | |
40 | +%build | |
41 | +CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` | |
42 | +if test "x$CPUS" = "x" -o $CPUS = 0; then | |
43 | + CPUS=1 | |
44 | +fi | |
45 | +export CFLAGS="%optflags" | |
46 | +libtoolize --force | |
47 | +aclocal $ACLOCAL_FLAGS -I . | |
48 | +autoheader | |
49 | +automake -a -c -f | |
50 | +autoconf | |
51 | + | |
52 | +./configure --prefix=%{_prefix} \ | |
53 | + --bindir=%{_bindir} \ | |
54 | + --mandir=%{_mandir} \ | |
55 | + --libdir=%{_libdir} \ | |
56 | + --datadir=%{_datadir} \ | |
57 | + --includedir=%{_includedir} \ | |
58 | + --sysconfdir=%{_sysconfdir} | |
59 | +make -j $CPUS | |
60 | + | |
61 | +%install | |
62 | +export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 | |
63 | +make -i install DESTDIR=$RPM_BUILD_ROOT | |
64 | +unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL | |
65 | +find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' | |
66 | +find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' | |
67 | + | |
68 | +%changelog | |
69 | +* Sat May 03 2013 - YAMAMOTO Takashi <yamachan@selfnavi.com> | |
70 | +- to use same spec file | |
71 | +* Thr May 01 2013 - YAMAMOTO Takashi <yamachan@selfnavi.com> | |
72 | +- 64 bit ready | |
73 | +* Sun Oct 23 2011 - Milan Jurik | |
74 | +- bump to 0.6.2 | |
75 | +* Thu Jun 10 2010 - Albert Lee <trisk@opensolaris.org> | |
76 | +- Bump to 0.6 | |
77 | +- Update URLs | |
78 | +* Tue Sep 02 2008 - halton.huo@sun.com | |
79 | +- Initial version |
@@ -1,105 +0,0 @@ | ||
1 | -# | |
2 | -# spec file for package libmms | |
3 | -# | |
4 | -# Copyright 2008 Sun Microsystems, Inc. | |
5 | -# This file and all modifications and additions to the pristine | |
6 | -# package are under the same license as the package itself. | |
7 | -# | |
8 | -# Owner:halton | |
9 | -# bugdb: http://bugs.launchpad.net/libmms/+bug/ | |
10 | -# | |
11 | - | |
12 | -Name: libmms | |
13 | -Summary: mms stream protocol library | |
14 | -Group: Libraries/Multimedia | |
15 | -Version: 0.6.2 | |
16 | -Release: 1 | |
17 | -Distribution: Java Desktop System | |
18 | -Vendor: Sun Microsystems, Inc. | |
19 | -URL: http://sourceforge.net/projects/libmms/ | |
20 | -License: LGPL | |
21 | -Source: %{sf_download}/%{name}/%{name}-%{version}.tar.gz | |
22 | -BuildRoot: %{_tmppath}/%{name}-%{version}-root | |
23 | - | |
24 | -%description | |
25 | -libmms is a library implementing the mms streaming protocol | |
26 | - | |
27 | -%package devel | |
28 | -Summary: Libraries and includefiles for developing with libmms | |
29 | -Group: Development/Libraries | |
30 | - | |
31 | -%description devel | |
32 | -This paackage provides the necessary development headers and libraries | |
33 | -to allow you to devel with libmms | |
34 | - | |
35 | -%prep | |
36 | -%setup -q | |
37 | -cd .. | |
38 | -%ifarch amd64 sparcv9 | |
39 | -rm -rf %{name}-%{version}-64 | |
40 | -cp -rp %{name}-%{version} %{name}-%{version}-64 | |
41 | -%endif | |
42 | - | |
43 | -%build | |
44 | -CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` | |
45 | -if test "x$CPUS" = "x" -o $CPUS = 0; then | |
46 | - CPUS=1 | |
47 | -fi | |
48 | -export CFLAGS="%optflags" | |
49 | -libtoolize --force | |
50 | -aclocal $ACLOCAL_FLAGS -I . | |
51 | -autoheader | |
52 | -automake -a -c -f | |
53 | -autoconf | |
54 | - | |
55 | -./configure --prefix=%{_prefix} \ | |
56 | - --bindir=%{_bindir} \ | |
57 | - --mandir=%{_mandir} \ | |
58 | - --libdir=%{_libdir} \ | |
59 | - --datadir=%{_datadir} \ | |
60 | - --includedir=%{_includedir} \ | |
61 | - --sysconfdir=%{_sysconfdir} | |
62 | -make -j $CPUS | |
63 | - | |
64 | -%ifarch amd64 sparcv9 | |
65 | -cd ../%{name}-%{version}-64 | |
66 | -export CFLAGS="%optflags64" | |
67 | -export RPM_OPT_FLAGS="$CFLAGS" | |
68 | -export CFLAGS="$CFLAGS -m64" | |
69 | -libtoolize --force | |
70 | -aclocal $ACLOCAL_FLAGS -I . | |
71 | -autoheader | |
72 | -automake -a -c -f | |
73 | -autoconf | |
74 | - | |
75 | -./configure --prefix=%{_prefix} \ | |
76 | - --bindir=%{_bindir}/%{_arch64} \ | |
77 | - --mandir=%{_mandir} \ | |
78 | - --libdir=%{_libdir}/%{_arch64} \ | |
79 | - --datadir=%{_datadir} \ | |
80 | - --includedir=%{_includedir} \ | |
81 | - --sysconfdir=%{_sysconfdir} | |
82 | -make -j $CPUS | |
83 | -%endif | |
84 | - | |
85 | -%install | |
86 | -export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 | |
87 | -make -i install DESTDIR=$RPM_BUILD_ROOT | |
88 | -%ifarch amd64 sparcv9 | |
89 | -cd ../%{name}-%{version}-64 | |
90 | -make -i install DESTDIR=$RPM_BUILD_ROOT | |
91 | -%endif | |
92 | -unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL | |
93 | -find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' | |
94 | -find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' | |
95 | - | |
96 | -%changelog | |
97 | -* Thr May 01 2013 - YAMAMOTO Takashi <yamachan@selfnavi.com> | |
98 | -- 64 bit ready | |
99 | -* Sun Oct 23 2011 - Milan Jurik | |
100 | -- bump to 0.6.2 | |
101 | -* Thu Jun 10 2010 - Albert Lee <trisk@opensolaris.org> | |
102 | -- Bump to 0.6 | |
103 | -- Update URLs | |
104 | -* Tue Sep 02 2008 - halton.huo@sun.com | |
105 | -- Initial version |