Overview

Request 2106 (accepted)

No description set
Submit package home:awissu / sview to package Multimedia / sview

sview.changes Added
x
 
1
@@ -0,0 +1,5 @@
2
+-------------------------------------------------------------------
3
+Sat May 19 00:00:00 UTC 2015 - avvissu@yandex.ru
4
+
5
+- Initial package
6
+
7
sview.spec Added
105
 
1
@@ -0,0 +1,103 @@
2
+#
3
+# spec file for package sview
4
+#
5
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
6
+#
7
+# All modifications and additions to the file contributed by third parties
8
+# remain the property of their copyright owners, unless otherwise agreed
9
+# upon. The license for this file, and modifications and additions to the
10
+# file, is the same license as for the pristine package itself (unless the
11
+# license for the pristine package is not an Open Source License, in which
12
+# case the license is the MIT License). An "Open Source License" is a
13
+# license that conforms to the Open Source Definition (Version 1.9)
14
+# published by the Open Source Initiative.
15
+
16
+# Please submit bugfixes or comments via https://bugs.links2linux.org/
17
+#
18
+
19
+
20
+%define src_ver 15_08
21
+Name:           sview
22
+Version:        15.08
23
+Release:        0
24
+Summary:        Stereoscopic media player
25
+License:        GPL-3.0+ and LGPL-3.0+
26
+Group:          Productivity/Multimedia/Video/Players
27
+Url:            http://www.sview.ru/en/
28
+Source:         https://github.com/gkv311/sview/archive/%{src_ver}.tar.gz#/%{name}-%{src_ver}.tar.gz
29
+BuildRequires:  dos2unix
30
+BuildRequires:  gcc-c++
31
+BuildRequires:  fdupes
32
+BuildRequires:  hicolor-icon-theme
33
+BuildRequires:  make
34
+BuildRequires:  pkgconfig
35
+BuildRequires:  update-desktop-files
36
+BuildRequires:  pkgconfig(gl)
37
+BuildRequires:  pkgconfig(gtk+-2.0)
38
+BuildRequires:  pkgconfig(freetype2)
39
+BuildRequires:  pkgconfig(libavcodec)
40
+BuildRequires:  pkgconfig(libavdevice)
41
+BuildRequires:  pkgconfig(libavformat)
42
+BuildRequires:  pkgconfig(libavutil)
43
+BuildRequires:  pkgconfig(libconfig++)
44
+BuildRequires:  pkgconfig(libswscale)
45
+BuildRequires:  pkgconfig(openal)
46
+BuildRequires:  pkgconfig(xpm)
47
+BuildRequires:  pkgconfig(xrandr)
48
+#Recommends:     mongoose
49
+ExclusiveArch:  %{ix86} x86_64
50
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
51
+
52
+%description
53
+Stereoscopic Image Viewer and Movie Player.
54
+
55
+%prep
56
+%setup -q -n %{name}-%{src_ver}
57
+
58
+dos2unix -k license-gpl* license-lgpl*
59
+
60
+%build
61
+sed -i '/^CXXFLAGS/s/$/\ %{optflags}/' Makefile
62
+# Remove %%_smp_mflags to avoid compilation errors
63
+make V=1 -j1 EXTRA_LDFLAGS="-Wl,-rpath,%{_libdir}/sView"
64
+
65
+%install
66
+%make_install USR_LIB=%{_lib}
67
+
68
+# GNOME switched to the freedesktop standard
69
+rm -rf %{buildroot}%{_datadir}/application-registry
70
+# Remove Debian directories
71
+rm -rf %{buildroot}%{_datadir}/menu
72
+# It's not necessary
73
+rm -rf %{buildroot}%{_datadir}/icons/hicolor/*/apps/%{name}.png
74
+# Use the installation in pixmaps
75
+rm -rf %{buildroot}%{_datadir}/sView/icons/menu.xpm
76
+install -Dm 0644 share/sView/icons/menu.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
77
+# Libraries used by the app must be placed into subdirectory
78
+mv %{buildroot}%{_libdir}/*.so %{buildroot}%{_libdir}/sView
79
+
80
+%fdupes -s %{buildroot}%{_datadir}
81
+
82
+%suse_update_desktop_file -r sViewIV Graphics Viewer
83
+%suse_update_desktop_file -r sViewMP AudioVideo Video Player
84
+
85
+%post
86
+%icon_theme_cache_post
87
+%desktop_database_post
88
+
89
+%postun
90
+%icon_theme_cache_postun
91
+%desktop_database_postun
92
+
93
+%files
94
+%defattr(-,root,root)
95
+%doc LICENSE license-gpl* license-lgpl*
96
+%{_bindir}/sView
97
+%{_libdir}/sView/
98
+%{_datadir}/applications/sViewIV.desktop
99
+%{_datadir}/applications/sViewMP.desktop
100
+%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
101
+%{_datadir}/pixmaps/%{name}.xpm
102
+%{_datadir}/sView/
103
+
104
+%changelog
105
sview-15_08.tar.gz Added
Refresh
Refresh

Olaf Hering

olh wrote over 9 years ago

I think this pkg needs a "ExclusiveArch:" tag, according to the build logs.

Request History
Aliaksei Padvalski's avatar

awissu created request over 9 years ago


Olaf Hering's avatar

olh accepted request over 9 years ago