/[packages]/cauldron/gnome-pilot/current/SPECS/gnome-pilot.spec
ViewVC logotype

Contents of /cauldron/gnome-pilot/current/SPECS/gnome-pilot.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 170395 - (show annotations) (download)
Mon Nov 21 08:56:08 2011 UTC (12 years, 6 months ago) by fwang
File size: 4301 byte(s)
rebuild for new evo
1 %define major 0
2 %define api 3.0
3 %define pilot_link_version 0.12.0
4 %define libname %mklibname %{name} %api %{major}
5 %define cmmajor 0
6 %define libnamecm %mklibname pilotdcm %api %cmmajor
7 %define conduitmajor 0
8 %define libnameconduit %mklibname gpilotdconduit %api %conduitmajor
9 %define develname %mklibname -d %{name}
10
11 Summary: GNOME Pilot programs
12 Name: gnome-pilot
13 Version: 2.91.93
14 Release: %mkrel 3
15 License: GPLv2+ and LGPLv2+
16 Group: Graphical desktop/GNOME
17 Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz
18 URL: http://www.gnome.org/projects/gnome-pilot/
19 BuildRequires: pkgconfig(dbus-glib-1) >= 0.74
20 BuildRequires: pkgconfig(gconf-2.0)
21 BuildRequires: pkgconfig(gtk+-3.0) >= 2.99.2
22 BuildRequires: pkgconfig(gudev-1.0)
23 BuildRequires: pkgconfig(libebook-1.2)
24 BuildRequires: pkgconfig(libecal-1.2)
25 BuildRequires: pkgconfig(libedataserverui-3.0)
26 BuildRequires: pkgconfig(libpanelapplet-4.0)
27 BuildRequires: pkgconfig(libxml-2.0)
28 BuildRequires: pilot-link-devel >= %{pilot_link_version}
29 BuildRequires: scrollkeeper
30 BuildRequires: automake
31 BuildRequires: intltool
32 BuildRequires: desktop-file-utils
33 BuildRequires: gnome-doc-utils
34 BuildRequires: gob2
35
36 %description
37 GNOME pilot is a collection of programs and daemon for integrating
38 GNOME and the PalmPilot (tm).
39
40 %package -n %{libname}
41
42 Summary: GNOME pilot libraries
43 Group: System/Libraries
44
45 %description -n %{libname}
46 GNOME-Pilot libraries
47
48 %package -n %{libnamecm}
49
50 Summary: GNOME pilot libraries
51 Group: System/Libraries
52
53 %description -n %{libnamecm}
54 GNOME-Pilot libraries
55
56 %package -n %{libnameconduit}
57
58 Summary: GNOME pilot libraries
59 Group: System/Libraries
60
61 %description -n %{libnameconduit}
62 GNOME-Pilot libraries
63
64 %package -n %{develname}
65 Summary: GNOME pilot libraries, includes, etc
66 Group: Development/GNOME and GTK+
67 Requires: %{name} = %{version}
68 Requires: %{libname} = %{version}
69 Requires: %{libnamecm} = %{version}
70 Requires: %{libnameconduit} = %{version}
71 Requires: pilot-link-devel >= %{pilot_link_version}
72 Obsoletes: %{name}-devel < %{version}-%{release}
73 Provides: %{name}-devel = %{version}-%{release}
74 Provides: lib%{name}-devel = %{version}-%{release}
75 Obsoletes: %{_lib}gnome-pilot2-devel < 2.0.17-7
76
77 %description -n %{develname}
78 gpilotd libraries and includes.
79
80 %prep
81 %setup -q
82
83 %build
84 %define _disable_ld_no_undefined 1
85 %configure2_5x --enable-usb --enable-network --disable-static
86 %make
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90 %makeinstall_std
91
92 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
93 cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{_real_vendor}-gpilot-install-file.desktop << EOF
94 [Desktop Entry]
95 Name=GNOME Pilot Install Databases
96 Comment=Install Databases on your Palm Pilot
97 Exec=gpilot-install-file %U
98 Icon=gnome-palm
99 Terminal=false
100 Type=Application
101 StartupNotify=true
102 MimeType=application/x-palm-database;
103 Categories=GNOME;GTK;TelephonyTools;Utility;
104 Hidden=true
105 EOF
106
107 desktop-file-install --vendor="" \
108 --remove-category="Application" \
109 --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/gpilotd-control-applet.desktop
110
111 %{find_lang} %{name} --with-gnome
112 for omf in %buildroot%_datadir/omf/*/*-??*.omf;do
113 echo "%lang($(basename $omf|sed -e s/.*-// -e s/.omf//)) $(echo $omf|sed -e s!%buildroot!!)" >> %name.lang
114 done
115 # remove unpackaged files
116 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
117
118 %files -f %{name}.lang
119 %doc AUTHORS COPYING ChangeLog NEWS README
120 %{_bindir}/*
121 %{_libexecdir}/gpilotd
122 %{_libexecdir}/gpilot-applet
123 %dir %{_libdir}/gnome-pilot
124 %dir %{_libdir}/gnome-pilot/conduits
125 %{_libdir}/gnome-pilot/conduits/*.so*
126 %{_datadir}/gnome-pilot
127 %{_datadir}/mime-info/*
128 %{_datadir}/pixmaps/*
129 %{_mandir}/man1/*
130 %_datadir/applications/*.desktop
131 %dir %{_datadir}/omf/*
132 %{_datadir}/omf/*/*-C.omf
133 %_datadir/dbus-1/services/org.gnome.GnomePilot.service
134 %_sysconfdir/gconf/schemas/pilot.schemas
135 %_datadir/dbus-1/services/org.gnome.panel.applet.PilotAppletFactory.service
136 %_datadir/gnome-panel/4.0/applets/org.gnome.applets.PilotApplet.panel-applet
137
138 %files -n %{libname}
139 %{_libdir}/libgpilotd-%api.so.%{major}*
140
141 %files -n %{libnamecm}
142 %{_libdir}/libgpilotdcm-%api.so.%{cmmajor}*
143
144 %files -n %{libnameconduit}
145 %{_libdir}/libgpilotdconduit-%api.so.%{conduitmajor}*
146
147 %files -n %{develname}
148 %{_includedir}/*
149 %{_libdir}/*.so
150 %{_libdir}/pkgconfig/*

  ViewVC Help
Powered by ViewVC 1.1.30