Re: Αναβάθμιση του Firefox
Δημοσιεύτηκε: Κυρ Σεπ 15, 2013 11:06 am
κανέναν οδηγό έχουμε Δημήτρη ?
Κώδικας: Επιλογή όλων
mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS/$x86_64,RPMS/noarch,SOURCES,SRPMS,SPECS,tmp}
Κώδικας: Επιλογή όλων
~/rpmbuild/BUILD: The directory where the sources are built.
~/rpmbuild/BUILDROOT: The directory where the install will be simulated
~/rpmbuild/RPMS: Contains the directories, one for each architecture, that will receive the binary packages after.
~/rpmbuild/RPMS/i586: The directory where rpm packages for i586 processors will be stored.
~/rpmbuild/RPMS/x86_64: The directory where rpm packages for AMD64 processors/Core 2 duo and later will be stored.
~/rpmbuild/RPMS/noarch: Idem for noarch (processor-independant) packages.
~/rpmbuild/SOURCES: The source files (mypackage.tar.bz2 for example).
~/rpmbuild/SPECS: The spec files we will have to construct.
~/rpmbuild/SRPMS: The source rpm after building.
~/rpmbuild/tmp: For temporary stuff that rpm will create when building your packages, you can find the scripts which are generated to actually build and package your package here, they are generated from the spec file and can be handy for debugging.
Κώδικας: Επιλογή όλων
%_topdir %(echo $HOME)/rpm
%_tmppath %(echo $HOME)/rpm/tmp
# If you want your packages to be GPG signed automatically, add these three lines
# replacing 'Mandrivalinux' with your GPG name. You may also use rpm --resign
# to sign the packages later.
%_signature gpg
%_gpg_name dglent@gmail.com
%_gpg_path ~/.gnupg
# Add your name and e-mail into the %packager field below. You may also want to
# also replace vendor with yourself.
%packager Dimitrios Glentadakis <dglent@gmail.com>
%distribution Mageia
%vendor Mageia
# If you want your packages to have your own distsuffix instead of mdv, add it
# here like this
%distsuffix mgr
Δεν ξέρω αν θα ασχοληθώ με το πακετάρισμα, ωστόσο υπόσχομαι ότι για όσο θα χρησιμοποιώ Mageia,dglent έγραψε:Πάντως αν θέλεις να ασχοληθείς, λίγο μεράκι χρειάζεται τίποτα παραπάνω...
Κώδικας: Επιλογή όλων
# Only set %_topdir and %_tmppath if you want to ovveride the the default ~/rpmbuild
# and ~/rpmbuild/tmp
#%_topdir %(echo $HOME)/rpm
#%_tmppath %(echo $HOME)/rpm/tmp
# If you want your packages to be GPG signed automatically, add these three lines
# replacing 'your_name' with your GPG name. You may also use rpm --resign
# to sign the packages later.
%_signature gpg
%_gpg_name prodromos
%_gpg_path ~/.gnupg
# Add your name and e-mail into the %packager field below. You may also want to
# also replace vendor with yourself.
%packager prodromos mitkos <mitkos81@gmail.com>
# you only need to set distribution and vendor if you are not building on
# a mga host
#%distribution Mageia
#%vendor Mageia.Org
# If you want your packages to have your own distsuffix instead of mga, add it
# here like this
#%distsuffix mgr
Κώδικας: Επιλογή όλων
~/rpmbuild/RPMS/noarch
Κώδικας: Επιλογή όλων
~/rpmbuild/RPMS/i586
~/rpmbuild/RPMS/x86_64
Κώδικας: Επιλογή όλων
mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS/$x86_64,RPMS/noarch,SOURCES,SRPMS,SPECS,tmp}
Κώδικας: Επιλογή όλων
wget http://ftp.belnet.be/mageia/distrib/cauldron/SRPMS/core/release/smem-1.3-2.mga4.src.rpm
Κώδικας: Επιλογή όλων
rpm -Uvh smem-1.3-2.mga4.src.rpm
Κώδικας: Επιλογή όλων
Name: smem
Version: 1.3.1
Release: %mkrel 2
Summary: Memory reporting tool
Group: Monitoring
License: GPLv2+
URL: http://www.selenic.com/%{name}/
Source0: http://www.selenic.com/%{name}/download/%{name}-%{version}.tar.gz
Requires: python
Requires: python-matplotlib
BuildArch: noarch
%description
smem is a tool that can give numerous reports on memory usage on Linux systems.
Unlike existing tools, smem can report proportional set size (PSS), which is a
more meaningful representation of the amount of memory used by libraries and
applications in a virtual memory system.
%prep
%setup -q
%build
%install
install -D smem %{buildroot}/%{_bindir}/smem
install -D smem.8 -m 644 %{buildroot}/%{_mandir}/man8/smem.8
%files
%{_bindir}/smem
%{_mandir}/man*/*
%changelog
* Mon Jun 17 2013 danf <danf> 1.3-2.mga4
+ Revision: 444215
- Added man page to package
* Sat Jun 01 2013 malo <malo> 1.3-1.mga4
+ Revision: 434102
- update to 1.3
* Mon Jan 14 2013 umeabot <umeabot> 1.2-2.mga3
+ Revision: 382201
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild
* Thu Nov 15 2012 malo <malo> 1.2-1.mga3
+ Revision: 318353
- update to 1.2
* Thu Mar 01 2012 malo <malo> 1.0-1.mga2
+ Revision: 216370
- update to version 1.0 (patch by Jeff Robins)
- spec clean-up after import from Mandriva (patch by Jeff Robins)
- imported package smem
* Tue Dec 07 2010 Oden Eriksson <oeriksson@mandriva.com> 0.9-2mdv2011.0
+ Revision: 614919
- the mass rebuild of 2010.1 packages
* Fri Nov 13 2009 Guillaume Rousse <guillomovitch@mandriva.org> 0.9-1mdv2010.1
+ Revision: 465686
- new version
* Sat May 23 2009 Andrey Borzenkov <arvidjaar@mandriva.org> 0.1-1mdv2010.0
+ Revision: 378992
- initial release
- import smem