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