base-specs/libunique.spec
author convert-repo
Tue, 28 Sep 2010 11:41:29 +0000
changeset 20122 34a34bffcb68
parent 20107 c9bb1ac4aebe
permissions -rw-r--r--
update tags
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
#
19974
b5d8e70005c8 Correct Copyright lines.
yippi
parents: 19953
diff changeset
     4
# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
14972
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
#
20107
c9bb1ac4aebe Update module owners to the correct owners.
yippi
parents: 19974
diff changeset
     8
%define owner lin
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
17852
edfc096bfd70 2010-04-16 Christian Kelly <[email protected]>
chrisk
parents: 17789
diff changeset
    11
%define OSR LFI#105446 (gnome Exec. summary):n/a
16431
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
18278
8ac2e6ff6202 2010-07-23 Christian Kelly <[email protected]>
chrisk
parents: 17865
diff changeset
    15
Group:          2.90.1
16947
7bc655351e76 2009-11-13 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    16
Version:        1.1.6
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
17865
b7ff02e93f66 2010-04-19 Christian Kelly <[email protected]>
chrisk
parents: 17852
diff changeset
    19
Vendor:         Gnome Community
18278
8ac2e6ff6202 2010-07-23 Christian Kelly <[email protected]>
chrisk
parents: 17865
diff changeset
    20
Summary:        A library for writing single instance applcations
8ac2e6ff6202 2010-07-23 Christian Kelly <[email protected]>
chrisk
parents: 17865
diff changeset
    21
Source:         http://download.gnome.org/sources/%{name}/2.90/%{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
17303
975b00079336 2010-01-12 Christian Kelly <[email protected]>
chrisk
parents: 16947
diff changeset
    28
Patch1:         libunique-01-fixxref-modules.diff
975b00079336 2010-01-12 Christian Kelly <[email protected]>
chrisk
parents: 16947
diff changeset
    29
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    30
%define gtk2_version 2.4.0
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    31
%define pkgconfig_version 0.15.0
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    32
%define gtk_doc_version 1.1
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    33
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    34
Requires: gtk2 >= %{gtk2_version}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    35
BuildRequires: gtk2-devel >= %{gtk2_version}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    36
BuildRequires: gtk-doc >= %{gtk_doc_version}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    37
BuildRequires: pkgconfig >= %{pkgconfig_version}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    38
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    39
%description
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    40
LibUnique is a library for writing single instance applications, that is
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    41
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
    42
either exits immediately or sends a command to the running instance.
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    43
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    44
LibUnique can be compiled against various backends, to allow the usage of
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    45
different IPC mechanisms depending on the platform.
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    46
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    47
%package devel
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    48
Summary:        unique development headers
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    49
Group:          Development/Libraries
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    50
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    51
%description devel
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    52
unique development headers
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    53
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    54
%prep
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    55
%setup -q
17303
975b00079336 2010-01-12 Christian Kelly <[email protected]>
chrisk
parents: 16947
diff changeset
    56
%patch1 -p1
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    57
16345
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
    58
#FIXME: remove uncompatible m4 files
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
    59
rm -f build/autotools/lt~obsolete.m4
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
    60
rm -f build/autotools/ltoptions.m4
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
    61
rm -f build/autotools/libtool.m4
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
    62
rm -f build/autotools/ltsugar.m4
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
    63
rm -f build/autotools/ltversion.m4
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
    64
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    65
%build
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    66
%ifos linux
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    67
if [ -x /usr/bin/getconf ]; then
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    68
  CPUS=`getconf _NPROCESSORS_ONLN`
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    69
fi
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    70
%else
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    71
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    72
%endif
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    73
if test "x$CPUS" = "x" -o $CPUS = 0; then
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    74
  CPUS=1
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    75
fi
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    76
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    77
libtoolize --force
16345
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
    78
aclocal $ACLOCAL_FLAGS  -I build/autotools
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    79
autoheader
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    80
automake -a -c -f
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    81
autoconf
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    82
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    83
./configure --prefix=%{_prefix}         \
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    84
            --bindir=%{_bindir}         \
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    85
            --libdir=%{_libdir}         \
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    86
            --includedir=%{_includedir} \
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    87
            --sysconfdir=%{_sysconfdir} \
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    88
            --mandir=%{_mandir}         \
16345
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
    89
            --enable-introspection=no   \
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    90
            %{gtk_doc_option}           \
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    91
%if %debug_build
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    92
            --enable-debug=yes          \
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    93
%else
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    94
            --enable-debug=no           \
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    95
%endif
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    96
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    97
# FIXME: hack: stop the build from looping
16345
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
    98
#touch po/stamp-it
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    99
16345
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
   100
make -j $CPU
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   101
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   102
%install
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   103
make install DESTDIR=$RPM_BUILD_ROOT
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   104
#Clean up unpackaged files
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   105
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   106
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
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
%clean
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   109
rm -rf $RPM_BUILD_ROOT
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   110
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   111
%files
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   112
%defattr(-,root,root)
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   113
%{_libdir}/*.so.*
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   114
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   115
%files devel
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   116
%defattr(-,root,root)
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   117
%{_includedir}/*
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   118
%{_libdir}/*.so
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   119
%{_libdir}/pkgconfig/*
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   120
%{_datadir}/gtk-doc/html/unique/*
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   121
18302
91c6800360b9 2010-07-30 Christian Kelly <[email protected]>
chrisk
parents: 18278
diff changeset
   122
%changelog
19953
a446f2aed87e 2010-08-02 Christian Kelly <[email protected]>
chrisk
parents: 18302
diff changeset
   123
* Mon Aug 02 2010 - [email protected]
a446f2aed87e 2010-08-02 Christian Kelly <[email protected]>
chrisk
parents: 18302
diff changeset
   124
- Remove -02-gtk-version.diff.
18302
91c6800360b9 2010-07-30 Christian Kelly <[email protected]>
chrisk
parents: 18278
diff changeset
   125
* Fri Jul 30 2010 - [email protected]
91c6800360b9 2010-07-30 Christian Kelly <[email protected]>
chrisk
parents: 18278
diff changeset
   126
- Fix %changelog.
18278
8ac2e6ff6202 2010-07-23 Christian Kelly <[email protected]>
chrisk
parents: 17865
diff changeset
   127
* Fri Jul 23 2010 - [email protected]
8ac2e6ff6202 2010-07-23 Christian Kelly <[email protected]>
chrisk
parents: 17865
diff changeset
   128
- Bump to 2.90.1.
8ac2e6ff6202 2010-07-23 Christian Kelly <[email protected]>
chrisk
parents: 17865
diff changeset
   129
- Add -02-gtk-version to allow build against gtk+3.
17303
975b00079336 2010-01-12 Christian Kelly <[email protected]>
chrisk
parents: 16947
diff changeset
   130
* Tue Jan 12 2010 - [email protected]
975b00079336 2010-01-12 Christian Kelly <[email protected]>
chrisk
parents: 16947
diff changeset
   131
- Add libunique-01-fixxref-modules to fix build issue.
16947
7bc655351e76 2009-11-13 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   132
* Fri Nov 13 2009 - [email protected]
7bc655351e76 2009-11-13 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   133
- Bump to 1.1.6
16345
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
   134
* Tue Aug 25 2009 - [email protected]
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
   135
- Bump to 1.1.2
bf31b2c413b2 2009-08-25 Halton Huo <[email protected]>
halton
parents: 15516
diff changeset
   136
- Disable gobject-introspection because 64bit build fail
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15354
diff changeset
   137
* Sat Mar 28 2009 - [email protected]
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15354
diff changeset
   138
- Bump to 1.0.8
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15354
diff changeset
   139
- Remove upstreamed patch gcc-warn-flags.diff
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   140
* Sat Jan 24 2009 - [email protected]
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   141
- Initial package