Logoj0ke.net Open Build Service > Projects > multimedia:EL5 > libschroedinger-1_0-0 > Changes
Sign Up | Log In

Changes of Revision 4

[-] Changed libschroedinger.spec
x
 
1
@@ -1,169 +1,103 @@
2
 # norootforbuild
3
 
4
-%if 0%{?suse_version} >= 1030
5
-%define with_gst 1
6
-%else
7
-%define with_gst 0
8
-%endif
9
-%define _prefix        /usr
10
-%define gst_branch 0.10
11
-%define _name2     libschroedinger
12
+%define api        1.0
13
+%define napi   1_0
14
+%define soname 0
15
 
16
-Name:          libschroedinger-1_0-0
17
+Name:          libschroedinger-%{napi}-%{soname}
18
 Version:       1.0.9
19
-Release:       1
20
+Release:       3
21
 Summary:       Library for decoding and encoding video in the Dirac format
22
 Group:         System/Libraries
23
-License:       LGPL-MIT-MPL
24
+License:       LGPL/MIT/MPL
25
 URL:           http://www.diracvideo.org
26
-Source:            http://www.diracvideo.org/download/schroedinger/schroedinger-%{version}.tar.gz
27
+# http://www.diracvideo.org/download/schroedinger/schroedinger-%{version}.tar.gz
28
+Source:            schroedinger-%{version}.tar.gz
29
 BuildRoot:     %{_tmppath}/%{name}-%{version}-build
30
-##BuildRequires:   docbook-dsssl-stylesheets
31
+BuildRequires: docbook-dsssl-stylesheets
32
 BuildRequires: docbook-xsl-stylesheets
33
 BuildRequires: gamin-devel
34
 BuildRequires: gcc-c++
35
-%if %with_gst
36
-%if 0%{?suse_version} >= 1030
37
-BuildRequires: gstreamer-0_10-devel
38
-BuildRequires: gstreamer-0_10-plugins-base-devel
39
-%else
40
-BuildRequires: gstreamer010-devel
41
-BuildRequires: gstreamer010-plugins-base-devel
42
-%endif
43
-%endif
44
 BuildRequires: gtkdoc
45
-BuildRequires: liboil-devel >= 0.3.16
46
-#BuildRequires:    mDNSResponder-lib
47
+BuildRequires: orc-devel orc
48
 BuildRequires: pkgconfig
49
 BuildRequires: sgml-skel
50
 BuildRequires: valgrind
51
 Provides:      libschroedinger0_1 = 0.6.1
52
-Obsoletes:     libschroedinger0_1 <= 0.6.1
53
+Obsoletes:     libschroedinger0_1 < 0.6.1
54
 # old packman name
55
-Provides:      libschroedinger0 = 1.0.9
56
-Obsoletes:     libschroedinger0 <= 1.0.9
57
-
58
-Requires:      liboil-0_3-0 >= 0.3.16
59
+Provides:      libschroedinger0 = %{version}
60
+Obsoletes:     libschroedinger0 < %{version}
61
 
62
 %description
63
 Library for decoding and encoding video in the Dirac format. It is implemented
64
 in ANSI C and optimized through the us of liboil. libschro is written as a
65
 collaboartion between the BBC Research and Development, David Schleef and Fluendo.
66
 
67
-This package contains also a gstreamer plugin for libschroedinger.
68
-
69
 %package -n libschroedinger-devel
70
-Summary:   libschroedinger development files and static libraries
71
+Summary:   Libschroedinger development files and static libraries
72
 Group:     Development/Libraries/C and C++
73
 Requires:  %{name} = %{version}-%{release}
74
-%if %with_gst
75
-%if 0%{?suse_version} >= 1030
76
-Requires:  gstreamer-0_10-devel
77
-Requires:  gstreamer-0_10-plugins-base-devel
78
-%else
79
-Requires:  gstreamer010-devel
80
-Requires:  gstreamer010-plugins-base-devel
81
-%endif
82
-%endif
83
-Requires:  liboil-devel >= 0.3.16
84
+Requires:  orc-devel orc
85
+# actual SuSE name ...
86
+Provides:  schroedinger-devel = %{version}
87
 
88
 %description -n libschroedinger-devel
89
-libschroedinger-devel contains the files needed to build packages that depend
90
+Libschroedinger-devel contains the files needed to build packages that depend
91
 on libschroedinger.
92
 
93
-%if %with_gst
94
-%if 0%{?suse_version} >= 1030
95
-%package -n gstreamer-0_10-schroedinger
96
-%else
97
-%package -n gstreamer010-schroedinger
98
-%endif
99
-Summary:   libschroedinger - gstreamer-plugin
100
-Group:     System/Libraries
101
-%if 0%{?suse_version} >= 1030
102
-Requires:  gstreamer-0_10
103
-Requires:  gstreamer-0_10-plugins-base
104
-%else
105
-Requires:  gstreamer010
106
-Requires:  gstreamer010-plugins-base
107
-%endif
108
-%if 0%{?suse_version} >= 1030
109
-# Name up to 10.3:
110
-Provides:  gstreamer010-schroedinger = 1.0.0
111
-Obsoletes: gstreamer010-schroedinger <= 1.0.0
112
-%endif
113
-
114
-%if 0%{?suse_version} >= 1030
115
-%description -n gstreamer-0_10-schroedinger
116
-%else
117
-%description -n gstreamer010-schroedinger
118
-%endif
119
-libschroedinger - gstreamer-plugin.
120
-%endif
121
-
122
 %debug_package
123
+
124
 %prep
125
 %setup -q -n schroedinger-%{version}
126
-%{?suse_update_config:%{suse_update_config}}
127
 
128
 %build
129
+export SUSE_ASNEEDED=0
130
+
131
 %configure \
132
-   --prefix=%{_prefix} \
133
    --enable-gtk-doc \
134
-   --with-html-dir=%{_docdir}/libschroedinger-devel \
135
+   --with-html-dir="%{_docdir}/libschroedinger-devel" \
136
    --enable-shared
137
 
138
-# testsuite and tools didn't compile :(
139
-%__sed -i -e 's|testsuite||g' \
140
-   Makefile
141
-%__sed -i -e 's|tools||g' \
142
-   Makefile
143
-
144
 %__make %{?jobs:-j%{jobs}}
145
 
146
 %install
147
 %makeinstall
148
 
149
-%if %with_gst
150
-%__rm -f %{buildroot}%{_libdir}/gstreamer-%{gst_branch}/*.la
151
-%__rm -f %{buildroot}%{_libdir}/gstreamer-%{gst_branch}/*.a
152
-%endif
153
-%__rm -f %{buildroot}%{_libdir}/lib*.la
154
+%__rm -f %{buildroot}%{_libdir}/lib*.{a,la}
155
 
156
-%post -p /sbin/ldconfig
157
-
158
-%postun -p /sbin/ldconfig
159
+%check
160
+export SUSE_ASNEEDED=0
161
+pushd testsuite
162
+   %__make
163
+   %__make check || true
164
+popd
165
 
166
 %clean
167
 [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
168
 
169
+%post -p /sbin/ldconfig
170
+
171
+%postun -p /sbin/ldconfig
172
+
173
 %files
174
 %defattr(-,root,root)
175
 %doc COPYING COPYING.* NEWS TODO
176
-%{_libdir}/lib*.so.*
177
+%{_libdir}/libschroedinger-%{api}.so.%{soname}
178
+%{_libdir}/libschroedinger-%{api}.so.%{soname}.*.*
179
 
180
 %files -n libschroedinger-devel
181
 %defattr(-,root,root)
182
 %doc %{_docdir}/libschroedinger-devel
183
-%{_libdir}/lib*.a
184
-%{_libdir}/lib*.so
185
-%{_libdir}/pkgconfig/schroedinger-*.pc
186
-%{_includedir}/*
187
-
188
-%if %with_gst
189
-%if 0%{?suse_version} >= 1030
190
-%files -n gstreamer-0_10-schroedinger
191
-%else
192
-%files -n gstreamer010-schroedinger
193
-%endif
194
-%defattr(-,root,root)
195
-%doc COPYING COPYING.*
196
-%{_libdir}/gstreamer-%{gst_branch}/libgstschro.so
197
-%endif
198
+%{_libdir}/libschroedinger-%{api}.so
199
+%{_libdir}/pkgconfig/schroedinger-%{api}.pc
200
+%{_includedir}/schroedinger-%{api}
201