14972
|
1 |
#
|
|
2 |
# spec file for package unique
|
|
3 |
#
|
19974
|
4 |
# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
14972
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
20107
|
8 |
%define owner lin
|
14972
|
9 |
#
|
|
10 |
|
17852
|
11 |
%define OSR LFI#105446 (gnome Exec. summary):n/a
|
16431
|
12 |
|
15516
|
13 |
Name: libunique
|
14972
|
14 |
License: LGPL v2.1
|
18278
|
15 |
Group: 2.90.1
|
16947
|
16 |
Version: 1.1.6
|
14972
|
17 |
Release: 1
|
|
18 |
Distribution: Java Desktop System
|
17865
|
19 |
Vendor: Gnome Community
|
18278
|
20 |
Summary: A library for writing single instance applcations
|
|
21 |
Source: http://download.gnome.org/sources/%{name}/2.90/%{name}-%{version}.tar.bz2
|
14972
|
22 |
URL: http://live.gnome.org/LibUnique
|
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
24 |
Docdir: %{_defaultdocdir}/doc
|
|
25 |
Autoreqprov:on
|
|
26 |
Prereq: /sbin/ldconfig
|
|
27 |
|
17303
|
28 |
Patch1: libunique-01-fixxref-modules.diff
|
|
29 |
|
14972
|
30 |
%define gtk2_version 2.4.0
|
|
31 |
%define pkgconfig_version 0.15.0
|
|
32 |
%define gtk_doc_version 1.1
|
|
33 |
|
|
34 |
Requires: gtk2 >= %{gtk2_version}
|
|
35 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
|
36 |
BuildRequires: gtk-doc >= %{gtk_doc_version}
|
|
37 |
BuildRequires: pkgconfig >= %{pkgconfig_version}
|
|
38 |
|
|
39 |
%description
|
|
40 |
LibUnique is a library for writing single instance applications, that is
|
|
41 |
applications that are run once and every further call to the same binary
|
|
42 |
either exits immediately or sends a command to the running instance.
|
|
43 |
|
|
44 |
LibUnique can be compiled against various backends, to allow the usage of
|
|
45 |
different IPC mechanisms depending on the platform.
|
|
46 |
|
|
47 |
%package devel
|
|
48 |
Summary: unique development headers
|
|
49 |
Group: Development/Libraries
|
|
50 |
|
|
51 |
%description devel
|
|
52 |
unique development headers
|
|
53 |
|
|
54 |
%prep
|
|
55 |
%setup -q
|
17303
|
56 |
%patch1 -p1
|
14972
|
57 |
|
16345
|
58 |
#FIXME: remove uncompatible m4 files
|
|
59 |
rm -f build/autotools/lt~obsolete.m4
|
|
60 |
rm -f build/autotools/ltoptions.m4
|
|
61 |
rm -f build/autotools/libtool.m4
|
|
62 |
rm -f build/autotools/ltsugar.m4
|
|
63 |
rm -f build/autotools/ltversion.m4
|
|
64 |
|
14972
|
65 |
%build
|
|
66 |
%ifos linux
|
|
67 |
if [ -x /usr/bin/getconf ]; then
|
|
68 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
69 |
fi
|
|
70 |
%else
|
|
71 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
72 |
%endif
|
|
73 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
74 |
CPUS=1
|
|
75 |
fi
|
|
76 |
|
|
77 |
libtoolize --force
|
16345
|
78 |
aclocal $ACLOCAL_FLAGS -I build/autotools
|
14972
|
79 |
autoheader
|
|
80 |
automake -a -c -f
|
|
81 |
autoconf
|
|
82 |
|
|
83 |
./configure --prefix=%{_prefix} \
|
|
84 |
--bindir=%{_bindir} \
|
|
85 |
--libdir=%{_libdir} \
|
|
86 |
--includedir=%{_includedir} \
|
|
87 |
--sysconfdir=%{_sysconfdir} \
|
|
88 |
--mandir=%{_mandir} \
|
16345
|
89 |
--enable-introspection=no \
|
14972
|
90 |
%{gtk_doc_option} \
|
|
91 |
%if %debug_build
|
|
92 |
--enable-debug=yes \
|
|
93 |
%else
|
|
94 |
--enable-debug=no \
|
|
95 |
%endif
|
|
96 |
|
|
97 |
# FIXME: hack: stop the build from looping
|
16345
|
98 |
#touch po/stamp-it
|
14972
|
99 |
|
16345
|
100 |
make -j $CPU
|
14972
|
101 |
|
|
102 |
%install
|
|
103 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
104 |
#Clean up unpackaged files
|
|
105 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
106 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
107 |
|
|
108 |
%clean
|
|
109 |
rm -rf $RPM_BUILD_ROOT
|
|
110 |
|
|
111 |
%files
|
|
112 |
%defattr(-,root,root)
|
|
113 |
%{_libdir}/*.so.*
|
|
114 |
|
|
115 |
%files devel
|
|
116 |
%defattr(-,root,root)
|
|
117 |
%{_includedir}/*
|
|
118 |
%{_libdir}/*.so
|
|
119 |
%{_libdir}/pkgconfig/*
|
|
120 |
%{_datadir}/gtk-doc/html/unique/*
|
|
121 |
|
18302
|
122 |
%changelog
|
19953
|
123 |
* Mon Aug 02 2010 - [email protected]
|
|
124 |
- Remove -02-gtk-version.diff.
|
18302
|
125 |
* Fri Jul 30 2010 - [email protected]
|
|
126 |
- Fix %changelog.
|
18278
|
127 |
* Fri Jul 23 2010 - [email protected]
|
|
128 |
- Bump to 2.90.1.
|
|
129 |
- Add -02-gtk-version to allow build against gtk+3.
|
17303
|
130 |
* Tue Jan 12 2010 - [email protected]
|
|
131 |
- Add libunique-01-fixxref-modules to fix build issue.
|
16947
|
132 |
* Fri Nov 13 2009 - [email protected]
|
|
133 |
- Bump to 1.1.6
|
16345
|
134 |
* Tue Aug 25 2009 - [email protected]
|
|
135 |
- Bump to 1.1.2
|
|
136 |
- Disable gobject-introspection because 64bit build fail
|
15516
|
137 |
* Sat Mar 28 2009 - [email protected]
|
|
138 |
- Bump to 1.0.8
|
|
139 |
- Remove upstreamed patch gcc-warn-flags.diff
|
14972
|
140 |
* Sat Jan 24 2009 - [email protected]
|
|
141 |
- Initial package
|