Overview

Request 934 (superseded)

This is my first package, please take extra care reviewing it! ;-)

Submit package home:blinry / nordlicht to package Multimedia / nordlicht

nordlicht.changes Changed
x
 
1
@@ -1,46 +1,4 @@
2
 -------------------------------------------------------------------
3
-Tue Mar 31 18:30:21 UTC 2020 - Olaf Hering <olaf@aepfle.de>
4
-
5
-- Bump to v0.4.5
6
-
7
--------------------------------------------------------------------
8
-Sat Oct 08 11:36:17 UTC 2016 - joerg.lorenzen@ki.tng.de
9
-
10
-- Removed service file because build often fails with 'bad temdir'
11
-  and only sometimes succeeds.
12
-
13
--------------------------------------------------------------------
14
-Mon Jan 25 08:55:17 UTC 2016 - sebastian@morr.cc
15
-
16
-- Bump to v0.4.4
17
-
18
--------------------------------------------------------------------
19
-Sat Jan  2 20:38:39 UTC 2016 - sebastian@morr.cc
20
-
21
-- Bump to v0.4.2
22
-
23
--------------------------------------------------------------------
24
-Sat Jan  2 19:44:41 UTC 2016 - sebastian@morr.cc
25
-
26
-- Bump package to version 0.4.0, which drops the libpng dependency and
27
-  integrates Olaf's improvements to FFmpeg detection
28
-
29
--------------------------------------------------------------------
30
-Tue Sep 22 08:47:31 UTC 2015 - olaf@aepfle.de
31
-
32
-- Use pkgconfig for ffmpeg BuildRequires
33
-
34
--------------------------------------------------------------------
35
-Thu Nov 20 08:00:50 UTC 2014 - guillaume@opensuse.org
36
-
37
-- Do not build for %arm (build hangs)
38
-
39
--------------------------------------------------------------------
40
-Thu Mar 20 13:08:51 UTC 2014 - sebastian@morr.cc
41
-
42
-- Bump package to version 0.3.5
43
-
44
--------------------------------------------------------------------
45
 Tue Mar 15 18:50:00 CET 2014 - sebastian@morr.cc
46
 
47
 - Update to version 0.3.4, which removes exit() calls from the library
48
@@ -49,4 +7,4 @@
49
 -------------------------------------------------------------------
50
 Tue Mar 4 00:47:05 CET 2014 - sebastian@morr.cc
51
 
52
-- Initial package of upstream version 0.3.3
53
+- Initial package of upstream version 0.3.3
54
\ No newline at end of file
55
nordlicht.spec Changed
108
 
1
@@ -1,56 +1,71 @@
2
+%define soname 0
3
+
4
 Name:           nordlicht
5
-Version:        0.4.5
6
+Version:        0.3.4
7
 Release:        0
8
-License:        GPL-2.0+
9
 Summary:        Creates colorful barcodes from video files
10
-Url:            https://nordlicht.github.io
11
+License:        GPL-2.0+
12
 Group:          Productivity/Multimedia/Editors and Convertors
13
-Source0:        %{name}-%{version}.tar.xz
14
-Obsoletes:      libnordlicht0 < %{version}-%{release}
15
-Obsoletes:      libnordlicht0-debuginfo < %{version}-%{release}
16
-Obsoletes:      nordlicht-devel < %{version}-%{release}
17
+Url:            https://github.com/blinry/%{name}
18
+Source0:        https://github.com/blinry/%{name}/archive/v%{version}.tar.gz
19
 
20
 BuildRequires:  cmake
21
-BuildRequires:  help2man
22
-BuildRequires:  pkg-config
23
-BuildRequires:  pkgconfig(libavcodec) = 58.134.100
24
-BuildRequires:  pkgconfig(libavformat) = 58.76.100
25
-BuildRequires:  pkgconfig(libavutil) = 56.70.100
26
-BuildRequires:  pkgconfig(libswscale) = 5.9.100
27
+BuildRequires:  libffmpeg-devel
28
+BuildRequires:  libpng-devel
29
 BuildRequires:  popt-devel
30
-
31
-ExclusiveArch:  %ix86 x86_64
32
+BuildRequires:  help2man
33
 
34
 %description
35
-C library for converting video files into colorful
36
-barcodes. It is inspired by the Moviebarcode Tumblr, but
37
-aims at the next logical step: Integrating these barcodes
38
-into video players to make navigation faster and more
39
-precise.
40
+C library for converting video files into colorful barcodes. It is inspired by the Moviebarcode Tumblr, but aims at the next logical step: Integrating these barcodes into video players to make navigation faster and more precise.
41
+
42
+This package provides a command line tool, which you can use to generate your own barcodes easily.
43
 
44
-This package provides a command line tool, which you can
45
-use to generate your own barcodes easily.
46
+%package -n lib%{name}%{soname}
47
+Summary:        Creates colorful barcodes from video files
48
+Group:          System/Libraries
49
+
50
+%description -n lib%{name}%{soname}
51
+C library for converting video files into colorful barcodes. It is inspired by the Moviebarcode Tumblr, but aims at the next logical step: Integrating these barcodes into video players to make navigation faster and more precise.
52
+
53
+%package devel
54
+Summary:        Development files for nordlicht
55
+Group:          Development/Libraries/C and C++
56
+Provides:       pkgconfig(nordlicht)
57
+Requires:       lib%{name}%{soname} >= %{version}
58
+
59
+%description devel
60
+This package contains all necessary include files and libraries needed
61
+to compile and develop applications that use nordlicht.
62
 
63
 %prep
64
-%autosetup -p1
65
+%setup -q
66
 
67
 %build
68
-sed -i~ '
69
-s@-static@@
70
-' CMakeLists.txt
71
-diff -u "$_"~ "$_" && exit 1
72
-CFLAGS='%{optflags} -Wno-deprecated-declarations'
73
-%cmake \
74
-   -DBUILD_SHARED_LIBS=OFF \
75
-   %{nil}
76
-%cmake_build
77
+cmake . \
78
+    -DCMAKE_C_FLAGS:STRING="%{optflags}" \
79
+    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
80
+    -DLIB_INSTALL_DIR:PATH=%{_libdir}
81
+make %{?_smp_mflags}
82
 
83
 %install
84
-%cmake_install
85
-rm -rfv %{buildroot}%{_libdir} %{buildroot}%{_includedir}
86
+%make_install
87
+
88
+%post -n lib%{name}%{soname} -p /sbin/ldconfig
89
+%postun -n lib%{name}%{soname} -p /sbin/ldconfig
90
 
91
 %files
92
-%{_mandir}/man1/%{name}.1%{ext_man}
93
+%defattr(-,root,root)
94
+%doc %{_mandir}/man1/%{name}.1%{ext_man}
95
 %{_bindir}/%{name}
96
 
97
+%files -n lib%{name}%{soname}
98
+%defattr(-,root,root)
99
+%{_libdir}/lib%{name}.so.%{soname}
100
+
101
+%files devel
102
+%defattr(-,root,root)
103
+%{_libdir}/lib%{name}.so
104
+%{_libdir}/pkgconfig/%{name}.pc
105
+%{_includedir}/%{name}.h
106
+
107
 %changelog
108
_service Changed
20
 
1
@@ -1,17 +1,3 @@
2
 <services>
3
-  <service name="tar_scm" mode="disabled">
4
-    <param name="filename">nordlicht</param>
5
-    <param name="revision">7ad3f008afe803037b332822028faed64b1751bd</param>
6
-    <param name="scm">git</param>
7
-    <param name="submodules">disable</param>
8
-    <param name="url">https://github.com/nordlicht/nordlicht.git</param>
9
-    <param name="versionformat">@PARENT_TAG@</param>
10
-    <param name="versionrewrite-pattern">v?(^++)(.*)</param>
11
-    <param name="versionrewrite-replacement">\1</param>
12
-  </service>
13
-  <service name="recompress" mode="disabled">
14
-    <param name="file">*.tar</param>
15
-    <param name="compression">xz</param>
16
-  </service>
17
-  <service name="set_version" mode="disabled"/>
18
+    <service name="download_files" mode="trylocal" />
19
 </services>
20
_service:download_files:v0.3.4.tar.gz Added
nordlicht-0.4.5.tar.xz Deleted
Refresh
Refresh
Request History
Sebastian Morr's avatar

blinry created request about 11 years ago

This is my first package, please take extra care reviewing it! ;-)


Peter Linnell's avatar

mrdocs declined request about 11 years ago

Looks OK. Please run spec file cleaner from openSUSE:Tools on the spec file and resubmit. The %description section should wrap at 59 chars. Thanks!


Guillaume G.'s avatar

guillaume superseded request over 10 years ago

Superseded by request 1434