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