-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcycle.spec
153 lines (127 loc) · 4.23 KB
/
cycle.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
%undefine _python_compile_skip_x
Name: cycle
Version: 0.3.1
Release: alt1
Summary: Calendar for women
Summary(ru_RU.KOI8-R): ëÁÌÅÎÄÁÒØ ÄÌÑ ÖÅÎÝÉÎ
License: GPL
Group: Sciences/Other
Url: http://conero.lrn.ru
Packager: Oleg Gints <[email protected]>
BuildArch: noarch
Source: %name-%version.tar.bz2
Requires: python-module-wx >= 2.5.3.1
BuildRequires: python
%description
Possibilities of the program:
- on given length of the cycle or on typed statistics for several periods
calculate days begin menstruation
- calculate days "safe" sex, fertile period and day to ovulations
- define d.o.b. a child
- allows to write notes
- helps to supervise reception of hormonal contraceptive tablets
%description -l ru_RU.KOI8-R
÷ÏÚÍÏÖÎÏÓÔÉ ÐÒÏÇÒÁÍÍÙ:
- ÐÏ ÚÁÄÁÎÎÏÊ ÐÒÏÄÏÌÖÉÔÅÌØÎÏÓÔÉ ÃÉËÌÁ ÉÌÉ ÐÏ ÎÁÂÒÁÎÎÏÊ ÓÔÁÔÉÓÔÉËÅ
ÚÁ ÎÅÓËÏÌØËÏ ÐÅÒÉÏÄÏ× ÓÐÒÏÇÎÏÚÉÒÏ×ÁÔØ ÄÎÉ ÎÁÞÁÌÁ ÍÅÎÓÔÒÕÁÃÉÊ
- ÒÁÓÓÞÉÔÁÔØ ÄÎÉ "ÂÅÚÏÐÁÓÎÏÇÏ" ÓÅËÓÁ, ÆÅÒÔÉÌØÎÙÊ ÐÅÒÉÏÄ É ÄÅÎØ Ï×ÕÌÑÃÉÉ
- ÏÐÒÅÄÅÌÉÔØ ÄÁÔÕ ÒÏÖÄÅÎÉÑ ÒÅÂÅÎËÁ
- ÐÏÚ×ÏÌÑÅÔ ×ÅÓÔÉ ÚÁÍÅÔËÉ
- ÐÏÍÏÇÁÅÔ ËÏÎÔÒÏÌÉÒÏ×ÁÔØ ÐÒÉÅÍ ÐÒÏÔÉ×ÏÚÁÞÁÔÏÞÎÙÈ ÇÏÒÍÏÎÁÌØÎÙÈ
ÔÁÂÌÅÔÏË
%prep
%setup -n %name-%version
%build
#---- cycle ----
cat >%name <<EOF
#! /bin/sh
cd %_datadir/%name
exec ./cycle.py
EOF
#---- set_dir.py ----
cat >set_dir.py <<EOF
#generated from cycle.spec
msg_dir="%_datadir/locale"
doc_dir="%_docdir/%name-%version"
icons_dir="%_iconsdir"
bitmaps_dir="%_datadir/%name/bitmaps"
EOF
%install
%__mkdir_p $RPM_BUILD_ROOT{%_bindir,%_datadir/%name/bitmaps,%_man1dir}
%__install -p -m644 cycle.1 $RPM_BUILD_ROOT%_man1dir
%__install -p -m755 cycle $RPM_BUILD_ROOT%_bindir/%name
%__install -p -m644 *.py $RPM_BUILD_ROOT%_datadir/%name
%__install -p -m755 cycle.py $RPM_BUILD_ROOT%_datadir/%name
%__install -p -m644 bitmaps/*.* $RPM_BUILD_ROOT%_datadir/%name/bitmaps/
for d in `find msg -type d -name LC_MESSAGES`; do
d_l=`echo $d|%__sed -e 's/msg/locale/g'`
%__mkdir_p $RPM_BUILD_ROOT%_datadir/$d_l
%__install -p -m644 $d/cycle.mo $RPM_BUILD_ROOT%_datadir/$d_l
done
%find_lang %name
# Menu support
mkdir -p $RPM_BUILD_ROOT{%_menudir,%_iconsdir}
mkdir -p $RPM_BUILD_ROOT{%_iconsdir/mini,%_iconsdir/large}
cat >$RPM_BUILD_ROOT%_menudir/%name <<EOF
?package(%name): \
needs=x11 \
section="Applications/Sciences/Other" \
title=Cycle \
command=%name \
icon=%name.xpm \
longtitle="Calendar for women"
EOF
install -p -m644 icons/%name.xpm $RPM_BUILD_ROOT%_iconsdir
install -p -m644 icons/mini/%name.xpm $RPM_BUILD_ROOT%_miconsdir
install -p -m644 icons/large/%name.xpm $RPM_BUILD_ROOT%_liconsdir
%add_python_compile_include %_datadir
%post
%update_menus
%postun
%clean_menus
%files -f %name.lang
%doc INSTALL CHANGELOG COPYRIGHT README* THANKS BUGS
%_bindir/%name
%_datadir/%name
%_menudir/*
%_iconsdir/*.xpm
%_miconsdir/*.xpm
%_liconsdir/*.xpm
%_man1dir/*
%changelog
* Thu Sep 15 2005 Oleg Gints <[email protected]> 0.3.1-alt1
- change to Python > 2.4 (fix problem with rotor module)
- Added man page from Miriam Ruiz <[email protected]>
- fix path to bytecompiling python modules
* Tue Dec 21 2004 Oleg Gints <[email protected]> 0.3.0-alt1
- change to wxPython = 2.5.X
- Add translation to the german language
from Christian Weiske <[email protected]>
- change install for */cycle.mo files
* Mon Oct 25 2004 Oleg Gints <[email protected]> 0.2.1-alt1
- Add colours settings
* Wed Apr 28 2004 Oleg Gints <[email protected]> 0.2.0-alt1
- Add translation for czech and slovak language
from Jozef Riha <[email protected]>
- change to Python 2.3
- Add description for english language
from Marco Papa Manzillo <[email protected]>
* Fri Sep 12 2003 Oleg Gints <[email protected]> 0.0.5-alt4
- add BuildRequires for build in hasher
- store source in bz2
- change tag's order
* Wed Jan 22 2003 Oleg Gints <[email protected]> 0.0.5-alt3
- again fix exception from LANGUAGE=lang1:lang2
* Fri Jan 17 2003 Oleg Gints <[email protected]> 0.0.5-alt2
- fix exception from LANGUAGE=lang1:lang2
* Mon Dec 30 2002 Oleg Gints <[email protected]> 0.0.5-alt1
- fix PopupMenu for new wxPythonGTK
* Sun Oct 27 2002 Oleg Gints <[email protected]> 0.0.4-alt2
- Change group to Sciences/Other
* Thu Oct 23 2002 Oleg Gints <[email protected]> 0.0.4-alt1
- New release
- Some spec cleanup
* Thu May 16 2002 Gints <[email protected]> 0.0.3-alt1
- Add menu
* Mon May 06 2002 Oleg Gints <[email protected]> 0.0.2-alt1
- first release