source: projects/specs/trunk/lib/libi/libindicator/libindicator-vl.spec @ 12550

Revision 12550, 3.0 KB checked in by tomop, 3 years ago (diff)

updated 5 packages

eudev-3.2.10-1

libappindicator-12.10.0-2

libindicator-12.10.1-3

nasm-2.15.05-1

vala-0.48.13-1

Line 
1Summary: a set of symbols and convience functions that all indicators would like to use
2Name: libindicator
3Version: 12.10.1
4Release: 3%{?_dist_release}
5Group: system
6Vendor: Project Vine
7Distribution: Vine Linux
8Packager: iwaim
9
10License: GPLv3
11URL: https://launchpad.net/libindicator
12Source0: %{name}-%{version}.tar.gz
13Patch1: libindicator-12.10.1-glib262-g_define_type_with_private.patch
14
15BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
16
17BuildRequires: gnome-common
18BuildRequires: gtk3-devel >= 2.91
19BuildRequires: glib2-devel >= 2.22
20
21%description
22A set of symbols and convience functions that all indicators would like to use. Not of real use outside of the Ayatana indicators project.
23
24
25%package devel
26Summary: Header files and libraries for %{name}
27Group: programming
28Requires: %{name} = %{version}-%{release}
29
30%description devel
31The %{name}-devel package contains the header files and libraries.
32
33
34%debug_package
35
36
37%prep
38%setup -q
39%patch1 -p2
40
41sed -i.addvar configure.ac \
42        -e '\@LIBINDICATOR_LIBS@s|\$LIBM| \$LIBM|'
43
44# http://bazaar.launchpad.net/~indicator-applet-developers/libindicator/trunk.12.10/view/head:/autogen.sh
45cat > autogen.sh <<EOF
46#!/bin/sh
47
48PKG_NAME="libindicator"
49
50which gnome-autogen.sh || {
51        echo "You need gnome-common from GNOME SVN"
52        exit 1
53}
54
55USE_GNOME2_MACROS=1 \
56. gnome-autogen.sh
57EOF
58
59NOCONFIGURE=1 \
60        sh autogen.sh
61
62
63%build
64export CFLAGS="%{optflags} -Wno-error=deprecated-declarations"
65%configure --with-gtk=3 --disable-static --disable-silent-rules
66sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
67sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
68sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
69make %{?_smp_mflags}
70
71
72%install
73rm -rf $RPM_BUILD_ROOT
74%makeinstall
75
76(
77        PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
78        export PKG_CONFIG_PATH
79        for var in \
80                iconsdir \
81                indicatordir \
82                %{nil}
83        do
84                vardir=$(pkg-config --variable=${var} indicator3-0.4)
85                mkdir -p %{buildroot}${vardir}
86        done
87)
88
89# Ubuntu doesn't package the dummy indicator
90rm -f %{buildroot}%{_libdir}/libdummy-indicator*.so
91
92%__rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
93
94
95%clean
96rm -rf $RPM_BUILD_ROOT
97
98
99%ldconfig_scriptlets
100
101
102%files
103%defattr(-,root,root,-)
104%license COPYING
105%doc README AUTHORS ChangeLog NEWS
106%{_libdir}/*.so.*
107%{_libexecdir}/indicator-loader3
108%dir %{_datadir}/libindicator/
109%dir %{_datadir}/libindicator/icons/
110%{_datadir}/%{name}/80indicator-debugging
111
112%files devel
113%defattr(-,root,root,-)
114%{_libdir}/pkgconfig/indicator3-0.4.pc
115%{_includedir}/%{name}3-0.4
116%{_libdir}/libindicator3.so
117
118
119%changelog
120* Fri Feb 26 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 12.10.1-3
121- rebuilt with current environment.
122
123* Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 12.10.1-2
124- rebuilt with current environment.
125
126* Sat May 19 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 12.10.1-1
127- Initial build.
Note: See TracBrowser for help on using the repository browser.