rpms/cycle/devel cycle-export.png, NONE, 1.1 cycle.desktop, NONE, 1.1 cycle.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Matej Cepl (mcepl) fedora-extras-commits at redhat.com
Thu Feb 1 16:26:18 UTC 2007


Author: mcepl

Update of /cvs/extras/rpms/cycle/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29709/devel

Modified Files:
	.cvsignore sources 
Added Files:
	cycle-export.png cycle.desktop cycle.spec 
Log Message:
auto-import cycle-0.3.1-3 on branch devel from cycle-0.3.1-3.src.rpm


--- NEW FILE cycle.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=cycle
Type=Application
Exec=/usr/bin/cycle
Icon=/usr/share/cycle/icons/cycle.xpm
Terminal=false
StartupNotify=true
Categories=GNOME;Utility;Calendar;MedicalSoftware;


--- NEW FILE cycle.spec ---
Name:           cycle
Version:        0.3.1
Release:        3%{?dist}
Summary:        Calendar program for women
Group:          Applications/Productivity
License:        GPL
URL:            http://cycle.sourceforge.net
Source0: http://prdownloads.sourceforge.net/cycle/cycle-%{version}.tar.bz2
# the below file collects additions from the Debian package
Source1:        cycle-msg.tar.bz2
Source2:        cycle-export.png
Source3:        cycle.desktop
Patch:          cycle-build.patch.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:       wxPython
BuildRequires:  python-devel >= 2.3, gettext,desktop-file-utils

%description
Cycle is a calendar for women. Given a cycle length or statistics
for several periods, it can calculate the days until
menstruation, the days of "safe" sex, the fertile period, and the
days to ovulations, and define the d.o.b. of a child. It allows
the user to write notes and helps to supervise the administration
of hormonal contraceptive tablets.

Multiple users allowed. Data is protected by a password for every
user.

NOTE: This program is not a reliable contraceptive method. It
does neither help to prevent sexual transmision diseases like
AIDS. It is just an electronic means of keeping track of some of
your medical data and extract some statistical conclusions from
them. You cannot consider this program as a substitute for your
gynecologist in any way.

%description -l ru_RU.UTF-8
    Возможности программы:
- по заданной продолжительности цикла или по набранной статистике
  за несколько периодов спрогнозировать дни начала менструаций
- рассчитать дни "безопасного" секса, фертильный период и день овуляции
- определить дату рождения ребенка
- позволяет вести заметки
- помогает контролировать прием противозачаточных гормональных
  таблеток

%prep
%setup0 -q
%setup -D -a 1 -q
%patch -p1 -b .MC-build
rm README.Debian

%build
python setup.py build
make -C msg
#---- 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
rm -rf $RPM_BUILD_ROOT

# data files
install -p -m a+rx,u+w -d \
    $RPM_BUILD_ROOT%{_datadir}/cycle/{pixmaps,bitmaps}
install -p -m a+r,u+w icons/cycle.xpm \
    $RPM_BUILD_ROOT%{_datadir}/cycle/pixmaps/
install -p -m a+r,u+w bitmaps/* $RPM_BUILD_ROOT%{_datadir}/cycle/bitmaps/
install -p -m a+r,u+w %{SOURCE2} \
    $RPM_BUILD_ROOT%{_datadir}/cycle/bitmaps/export.png
install -p -m a+rx,u+w -d \
    $RPM_BUILD_ROOT%{_datadir}/cycle/icons/{large,mini}
cp -r -p icons/* $RPM_BUILD_ROOT%{_datadir}/cycle/icons/
install -p -m a+rx,u+w -d $RPM_BUILD_ROOT%{_datadir}/applications/
install -p -m a+r,u+w %{SOURCE3} \
    $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

# Python libraries
install -p -m a+rx,u+w cycle.py $RPM_BUILD_ROOT%{_datadir}/cycle/
install -p -m a+r,u+w cal_year.py dialogs.py p_rotor.py \
    save_load.py set_dir.py \
    $RPM_BUILD_ROOT%{_datadir}/cycle/

# cycle binary
install -p -m a+rx,u+w -d $RPM_BUILD_ROOT%{_bindir}
ln -sf ../share/cycle/cycle.py $RPM_BUILD_ROOT%{_bindir}/cycle
make -C msg install DESTDIR=$RPM_BUILD_ROOT%{_datadir}/

# manpage
install -p -m a+rx,u+w -d \
    $RPM_BUILD_ROOT%{_mandir}/man1/
install -p -m a+r,u+w cycle.1 $RPM_BUILD_ROOT%{_mandir}/man1/

desktop-file-install \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
--vendor=fedora \
--delete-original \
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
%find_lang %{name} || touch %{name}.lang

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,-)
%{_bindir}/cycle
%doc README* COPYRIGHT CHANGELOG THANKS
%{_datadir}/cycle/
%{_datadir}/applications/fedora-cycle.desktop
%{_mandir}/man1/cycle*


%changelog
* Thu Feb  1 2007 Matěj Cepl <mcepl at redhat.com> 0.3.1-3
- don't gzip manpage -- rpmbuild does it automagically
- category should be Application/Productivity (or
  non-Productivity in this case, but that's not included into RH
  standards :-))
- generate set_dir.py (according to the upstream .spec file)
- fixed cs.po

* Wed Jan 31 2007 Matěj Cepl <mcepl at redhat.com> 0.3.1-2
- fixed missing files in %%doc
- fixed Description
- added manpage
- fixed .desktop file

* Sat Jan 6 2007 Matěj Cepl <mcepl at redhat.com> 0.3.1-1
- Initial build based on Debian package cycle_0.3.1-6


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/cycle/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	1 Feb 2007 16:24:59 -0000	1.1
+++ .cvsignore	1 Feb 2007 16:25:48 -0000	1.2
@@ -0,0 +1,3 @@
+cycle-0.3.1.tar.bz2
+cycle-build.patch.bz2
+cycle-msg.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/cycle/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	1 Feb 2007 16:24:59 -0000	1.1
+++ sources	1 Feb 2007 16:25:48 -0000	1.2
@@ -0,0 +1,3 @@
+8bd5c2f78e7b1a7ac7910de8b9420d93  cycle-0.3.1.tar.bz2
+20e8ea403e6510b77f5501eb944164f7  cycle-build.patch.bz2
+58f4a960f13119eef30b5402d6de2b8c  cycle-msg.tar.bz2




More information about the scm-commits mailing list