This repository was archived by the owner on Mar 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibgaminggear.spec
87 lines (72 loc) · 2.25 KB
/
libgaminggear.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
%define vmajor 0
%define vminor 15
%define vmicro 1
Name: libgaminggear
Version: %{vmajor}.%{vminor}.%{vmicro}
Release: 1
License: GPL
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake >= 2.6.4
BuildRequires: gtk2-devel >= 2.20
BuildRequires: sqlite >= 3.7
BuildRequires: libcanberra-devel
BuildRequires: libnotify-devel
BuildRequires: doxygen
BuildRequires: gettext >= 0.15
ExclusiveOS: linux
URL: http://sourceforge.net/projects/libgaminggear/
Packager: Stefan Achatz <[email protected]>
Summary: Libraries for gaming input devices
Group: System Environment/Libraries
%package devel
Requires: libgaminggear
Summary: Development headers for libgaminggear.
Group: Development/Libraries
%description
Libgaminggear provides functions and widgets common for gaming input devices.
%description devel
Libgaminggear provides functions and widgets common for gaming input devices.
Here are the development headers needed to compile software that uses libgaminggear.
%prep
%setup -q -n %{name}-%{version}
%{__mkdir} build
cd build
cmake -DCMAKE_INSTALL_PREFIX="%{_prefix}" -DCMAKE_BUILD_TYPE=Release -DINSTALL_LIBDIR="%{_libdir}" -DWITH_DOC=TRUE ..
%build
cd build
%{__make} -r %{?_smp_mflags}
%install
cd build
%{__rm} -rf "%{buildroot}"
%{__make} -r %{?_smp_mflags} DESTDIR="%{buildroot}" install
%clean
%{__rm} -rf "%{buildroot}"
%post
/sbin/ldconfig
touch --no-create %{prefix}/share/icons/hicolor &>/dev/null || :
%postun
/sbin/ldconfig
if [ $1 -eq 0 ] ; then
touch --no-create %{prefix}/share/icons/hicolor &>/dev/null
gtk-update-icon-cache %{prefix}/share/icons/hicolor &>dev/null || :
fi
%posttrans
gtk-update-icon-cache %{prefix}/share/icons/hicolor &>dev/null || :
%files
%defattr(-,root,root)
%doc INSTALL README COPYING Changelog
%{_libdir}/libgaminggear*
%{_datadir}/libgaminggear/icons
%{_bindir}/gaminggearfxinfo
%{_bindir}/gaminggearfxcontrol
%{_datadir}/locale/*/LC_MESSAGES/libgaminggear.mo
%files devel
%defattr(-,root,root)
%{_includedir}/gaminggear-%{vmajor}
%{_datadir}/doc/libgaminggear/html
%{_datadir}/pkgconfig/gaminggear-%{vmajor}.pc
%{_datadir}/cmake/Modules/FindGAMINGGEAR%{vmajor}.cmake
%changelog
* Fri Jun 09 2016 Stefan Achatz <[email protected]> 0.15.1-1
- Initial version