]> git.pld-linux.org Git - packages/gammu.git/blob - gammu.spec
- tabs
[packages/gammu.git] / gammu.spec
1 Summary:        GNU tool suite for mobile phones
2 Summary(pl.UTF-8):      Zestaw narzędzi GNU dla telefonów komórkowych
3 Name:           gammu
4 Version:        1.10.0
5 Release:        1
6 Epoch:          1
7 License:        GPL v2
8 Group:          Applications/Communications
9 Source0:        http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2
10 # Source0-md5:  05b623c30cfd69ea97f0bc054b19928d
11 Patch0:         %{name}-etc_dir.patch
12 Patch1:         %{name}-no_nss.patch
13 Patch2:         %{name}-libpq_dir.patch
14 URL:            http://www.gammu.org/
15 BuildRequires:  autoconf
16 BuildRequires:  bluez-libs-devel
17 BuildRequires:  mysql-devel
18 BuildRequires:  postgresql-devel
19 Provides:       mygnokii2
20 Obsoletes:      mygnokii2
21 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Gammu (formerly known as MyGnokii2) is cellular manager for various
26 mobile phones and modems. It currently supports Nokia 3210, 33xx,
27 3410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx,
28 8310, 9110, and 9210, and AT devices (such as Siemens, Alcatel,
29 WaveCom, IPAQ, and other). It has a command line version with many
30 functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm,
31 calls, etc. It can also make full backups and restore them.
32
33 %description -l pl.UTF-8
34 Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania
35 różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie
36 3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
37 82xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens,
38 Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z
39 wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo,
40 WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne
41 kopie zapasowe danych i odtwarzać je.
42
43 %package devel
44 Summary:        Header files for Gammu tool suite for mobile phones
45 Summary(pl.UTF-8):      Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu
46 Group:          Development/Libraries
47 Requires:       %{name} = %{epoch}:%{version}-%{release}
48
49 %description devel
50 Header files for Gammu tool suite for mobile phones.
51
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu.
54
55 %package libs
56 Summary:        Gammu library
57 Summary(pl.UTF-8):      Biblioteka Gammu
58 Group:          Libraries
59
60 %description libs
61 Gammu tool suite library.
62
63 %description devel -l pl.UTF-8
64 Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
65
66 %package static
67 Summary:        Gammu static library
68 Summary(pl.UTF-8):      Biblioteka statyczna Gammu
69 Group:          Development/Libraries
70 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
71
72 %description static
73 Gammu static library.
74
75 %description devel -l pl.UTF-8
76 Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
77
78 %prep
79 %setup -q
80 #%patch0 -p1
81 %patch1 -p1
82 %patch2 -p1
83 cp -f VERSION cfg/autoconf/VERSION
84 mv docs/docs/english/gammu.1 .
85
86 %build
87 cd cfg/autoconf
88 %{__autoconf}
89 %configure \
90         --disable-static \
91         --without-rpmdir \
92         --enable-cb \
93         --enable-7110incoming \
94         --enable-6210calendar \
95         --with-localedir=%{_datadir}/%{name}
96 cd ../..
97 %{__make} shared
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version},%{_datadir}/%{name}}
102 %{__make} installlibonly \
103         DESTDIR=$RPM_BUILD_ROOT \
104         prefix=%{_prefix} \
105         INSTALL_LIB_DIR=%{_libdir} \
106         INSTALL_MAN_DIR=%{_mandir}/man1 \
107         FIND=find
108
109 install -D gammu.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
110 install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
111 install docs/docs/locale/*.txt $RPM_BUILD_ROOT%{_datadir}/%{name}
112 cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
113 cd $RPM_BUILD_ROOT%{_libdir}
114 ln -sf libGammu.so.1.0 libGammu.so
115
116 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
117
118 %clean
119 rm -rf $RPM_BUILD_ROOT
120
121 %if %{with ldconfig}
122 %post   -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
124 %endif
125
126 %files
127 %defattr(644,root,root,755)
128 %doc ChangeLog docs/docs/english/gammu.htm other/bash README
129 %doc %lang(it) docs/docs/italian
130 %attr(755,root,root) %{_bindir}/%{name}
131 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
132 %dir %{_datadir}/%{name}
133 %lang(cs) %{_datadir}/%{name}/gammu_cs.txt
134 %lang(de) %{_datadir}/%{name}/gammu_de.txt
135 %lang(es) %{_datadir}/%{name}/gammu_es.txt
136 %lang(it) %{_datadir}/%{name}/gammu_it.txt
137 %lang(pl) %{_datadir}/%{name}/gammu_pl.txt
138 %lang(ru) %{_datadir}/%{name}/gammu_ru.txt
139 %{_datadir}/%{name}/gammu_us.txt
140 %{_examplesdir}/%{name}-%{version}
141 %{_mandir}/man1/*
142
143 %files devel
144 %defattr(644,root,root,755)
145 %{_libdir}/*.so
146 %{_includedir}/*
147 %{_pkgconfigdir}/*
148
149 %files libs
150 %defattr(755,root,root,755)
151 %{_libdir}/*.so.*
152
153 %files static
154 %defattr(755,root,root,755)
155 %{_libdir}/*.a
This page took 0.068162 seconds and 3 git commands to generate.