Logoj0ke.net Open Build Service > Projects > multimedia > a52dec > Changes
Sign Up | Log In

Changes of Revision 2

[-] Changed a52dec.spec
x
 
1
@@ -1,25 +1,31 @@
2
-%define name        a52dec
3
-%define version     0.7.4
4
-%define release     1
5
-%define mandir      %{_mandir}
6
+# norootforbuild
7
+
8
+%define name      a52dec
9
+%define version   0.7.4
10
+%define release   3
11
+%define major     0
12
+%define lib       liba52dec
13
+%define libname   %{lib}%{major}
14
+%define mandir    %{_mandir}
15
 
16
 Summary:        library for decoding ATSC A/52 streams
17
 Summary(de):    Bibliothek zum dekodieren von ATSC A/52 Streams
18
 Name:           %{name}
19
 Version:        %{version}
20
 Release:        %{release}
21
-License:        GPL
22
-Group:          Development/Libraries/C
23
+License:        GPL v2 or later
24
+Group:          Productivity/Multimedia/Sound/Utilities
25
 
26
 Source0:        a52dec-0.7.4.tar.bz2
27
 
28
 URL:            http://liba52.sourceforge.net/
29
 BuildRoot:      /var/tmp/%{name}-%{version}-%{release}
30
 Prefix:         %{_prefix}
31
-
32
-Packager:       %packager
33
-Vendor:         %vendor
34
-Distribution:   %distribution
35
+BuildRequires:  glibc-devel
36
+BuildRequires:  gcc
37
+BuildRequires:  gzip
38
+Requires:       %{libname} = %{version}-%{release}
39
+Autoreqprov:    On
40
 
41
 %description
42
 liba52 is a free library for decoding ATSC A/52 streams.
43
@@ -27,51 +33,81 @@
44
 %description -l de
45
 liba52 ist eine frei Biblothek zum dekodieren von ATSC A/52 Streams.
46
 
47
+%package -n %{libname}
48
+Group:          System/Libraries
49
+Summary:        Shared library part of a52dec
50
+Summary(de):    Bibliotheken zu a52dec
51
+Provides:       %{lib} = %{version}-%{release}
52
+
53
+%description -n %{libname}
54
+Shared library part of a52dec
55
+
56
+%description -n %{libname} -l de
57
+Bibliotheken zu a52dec
58
+
59
+%package -n %{lib}-devel
60
+Group:          System/Libraries
61
+Summary:        Header files and static library for the a52dec library
62
+Summary(de):    Header Dateien und statische Bibliotheken für die a52dec Bibliothek
63
+Requires:       %{libname} = %{version}-%{release}
64
+Requires:       glibc-devel
65
+Requires:       gcc
66
+
67
+%description -n %{lib}-devel
68
+Header files and static library for the a52dec library
69
+
70
+%description -n %{lib}-devel -l de
71
+Header Dateien und statische Bibliotheken für die a52dec Bibliothek
72
+
73
+%debug_package
74
+
75
+
76
 %prep
77
 
78
 %setup
79
 
80
 %build
81
 %ifarch x86_64 amd64 ia32e
82
-CFLAGS="$RPM_OPT_FLAGS -fPIC"
83
+CFLAGS="${RPM_OPT_FLAGS} -fPIC"
84
 %else
85
-CFLAGS="$RPM_OPT_FLAGS"
86
+CFLAGS="${RPM_OPT_FLAGS}"
87
 %endif
88
 CC=gcc
89
 export CC CFLAGS
90
-./configure --prefix=%{prefix} --mandir=%{mandir} --libdir=%{_libdir} --enable-shared
91
-make
92
+%configure --enable-shared
93
+%__make %{?jobs:-j%{jobs}}
94
 
95
 %install
96
-[ "$RPM_BUILD_ROOT" = "/var/tmp/%{name}-%{version}-%{release}" ] && rm -rf $RPM_BUILD_ROOT;
97
-
98
-make DESTDIR=$RPM_BUILD_ROOT install
99
+[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
100
+%makeinstall
101
 
102
-/sbin/ldconfig -n $RPM_BUILD_ROOT
103
+find %{buildroot}%{mandir} -type f -exec gzip -9 {} \;
104
 
105
-find $RPM_BUILD_ROOT%{mandir} -type f -exec gzip -9 {} \;
106
-
107
-#find $RPM_BUILD_ROOT -type f -o -type l |sed -e "s|$RPM_BUILD_ROOT||g" > filelist
108
-
109
-%postun
110
-/sbin/ldconfig
111
+%clean
112
+[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
113
 
114
-%post
115
-/sbin/ldconfig
116
+%post -n %{libname}
117
+%run_ldconfig
118
 
119
-%clean
120
-[ "$RPM_BUILD_ROOT" = "/var/tmp/%{name}-%{version}-%{release}" ] && rm -rf $RPM_BUILD_ROOT;
121
+%postun -n %{libname}
122
+%run_ldconfig
123
 
124
 %files
125
 %defattr(-, root, root)
126
 %doc README ChangeLog AUTHORS HISTORY INSTALL NEWS TODO COPYING
127
-%{prefix}/bin/*
128
-%{prefix}/include/a52dec/*.h
129
-%{_libdir}/*
130
+%{_bindir}/*
131
 %{mandir}/man1/*.gz
132
 
133
+%files -n %{libname}
134
+%defattr(-,root,root)
135
+%{_libdir}/*.so.*
136
+
137
+%files -n %{lib}-devel
138
+%defattr(-,root,root)
139
+%{_includedir}/
140
+%{_libdir}/*.so
141
+%{_libdir}/*.*a
142
+
143
 %changelog
144
 * Sun Sep 30 2007 Carsten Schoene <cs@linux-administrator.com>
145
 - import for SLE_10 build
146
-
147
-
148