author | mattman |
Wed, 18 Feb 2009 15:07:13 +0000 | |
changeset 15143 | d2d90ead6862 |
parent 14972 | 07f8d57d344a |
child 15354 | e0f579ab886a |
permissions | -rw-r--r-- |
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 |
# |
|
15143
d2d90ead6862
* SUNWtgnome-tsoljdsdevmgr.spec : Update Owner format string
mattman
parents:
14972
diff
changeset
|
8 |
# Owner: halton |
14972 | 9 |
# |
10 |
||
11 |
Name: unique |
|
12 |
License: LGPL v2.1 |
|
13 |
Group: System/Libraries |
|
14 |
Version: 1.0.6 |
|
15 |
Release: 1 |
|
16 |
Distribution: Java Desktop System |
|
17 |
Vendor: Sun Microsystems, Inc. |
|
18 |
Summary: A library for writing single instance applications |
|
19 |
Source: http://www.gnome.org/~ebassi/source/%{name}-%{version}.tar.gz |
|
20 |
# date:2009-01-24 owner:halton type:bug |
|
21 |
Patch1: unique-01-gcc-warn-flags.diff |
|
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 |
%patch1 -p1 |
|
55 |
||
56 |
%build |
|
57 |
%ifos linux |
|
58 |
if [ -x /usr/bin/getconf ]; then |
|
59 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
60 |
fi |
|
61 |
%else |
|
62 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
63 |
%endif |
|
64 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
65 |
CPUS=1 |
|
66 |
fi |
|
67 |
||
68 |
libtoolize --force |
|
69 |
aclocal $ACLOCAL_FLAGS -I . |
|
70 |
autoheader |
|
71 |
automake -a -c -f |
|
72 |
autoconf |
|
73 |
||
74 |
./configure --prefix=%{_prefix} \ |
|
75 |
--bindir=%{_bindir} \ |
|
76 |
--libdir=%{_libdir} \ |
|
77 |
--includedir=%{_includedir} \ |
|
78 |
--sysconfdir=%{_sysconfdir} \ |
|
79 |
--mandir=%{_mandir} \ |
|
80 |
%{gtk_doc_option} \ |
|
81 |
%if %debug_build |
|
82 |
--enable-debug=yes \ |
|
83 |
%else |
|
84 |
--enable-debug=no \ |
|
85 |
%endif |
|
86 |
||
87 |
# FIXME: hack: stop the build from looping |
|
88 |
touch po/stamp-it |
|
89 |
||
90 |
make -j $CPUS |
|
91 |
||
92 |
%install |
|
93 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
94 |
#Clean up unpackaged files |
|
95 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
|
96 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
97 |
||
98 |
%clean |
|
99 |
rm -rf $RPM_BUILD_ROOT |
|
100 |
||
101 |
%files |
|
102 |
%defattr(-,root,root) |
|
103 |
%{_libdir}/*.so.* |
|
104 |
||
105 |
%files devel |
|
106 |
%defattr(-,root,root) |
|
107 |
%{_includedir}/* |
|
108 |
%{_libdir}/*.so |
|
109 |
%{_libdir}/pkgconfig/* |
|
110 |
%{_datadir}/gtk-doc/html/unique/* |
|
111 |
||
112 |
%changelog |
|
113 |
* Sat Jan 24 2009 - [email protected] |
|
114 |
- Initial package |