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