Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > by-pkgid > c2b271190bf9fcdfb655b81ebc8f37bd > files > 7

nano-2.0.7-alt1.src.rpm

# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1

Name: nano
Version: 2.0.7
Release: alt1

Summary: Pico editor clone with enhancements
License: %gpl3plus/%fdl v1.2+
Group: Editors
Url: http://www.nano-editor.org
Packager: Artem Zolochevskiy <azol@altlinux.ru>

Source0: %url/dist/v2.0/%name-%version.tar.gz
Source1: %name.desktop

# Gets from Debian package:
# debian.org/debian/pool/main/n/nano/nano_1.9.99pre2-1.diff.gz
# and converted from xpm to png
Source2: %name-16x16.png
Source3: %name-32x32.png
Source4: %name-48x48.png

Source5: nanorc

# You can find this sources here:
# http://gentoo-wiki.com/TIP_Nano_Context_Highlighting
Source6: php.nanorc
Source7: xorg.nanorc
Source8: xml.nanorc
Source9: css.nanorc

# needed for post and preun section
Requires(post): %install_info
Requires(preun): %uninstall_info

BuildRequires(pre): rpm-build-licenses
BuildRequires: libncursesw-devel

%description
GNU nano is a small and friendly text editor.  It aims to emulate the
Pico text editor while also offering a few enhancements.

%prep
%setup

%build
%configure --enable-all
%make_build --silent --no-print-directory

%install
%make_install DESTDIR=%buildroot install --silent --no-print-directory

# install .desktop file
install -pD -m 644 %SOURCE1 %buildroot%_desktopdir/%name.desktop

# install icons
install -pD -m 644 %SOURCE2 %buildroot%_miconsdir/%name.png
install -pD -m 644 %SOURCE3 %buildroot%_niconsdir/%name.png
install -pD -m 644 %SOURCE4 %buildroot%_liconsdir/%name.png

# install config file
install -pD -m 644 %SOURCE5 %buildroot%_sysconfdir/nanorc

# additional files for syntax highlighting
install -pD -m 644 %SOURCE6 %buildroot%_datadir/%name/php.nanorc
install -pD -m 644 %SOURCE7 %buildroot%_datadir/%name/xorg.nanorc
install -pD -m 644 %SOURCE8 %buildroot%_datadir/%name/xml.nanorc
install -pD -m 644 %SOURCE9 %buildroot%_datadir/%name/css.nanorc

# find *.mo files and mans for nano
%find_lang --with-man %name

# find mans for nanorc only
%find_lang --without-mo --append --with-man nanorc --output %name.lang

# compress ChangeLog
gzip ChangeLog

# COPYING and COPYING.DOC as symlinks
ln -sf %_licensedir/GPL-3 COPYING
ln -sf %_licensedir/FDL-1.2 COPYING.DOC

%post
%install_info %name.info
%update_menus

%preun
%uninstall_info %name.info

%postun
%clean_menus

%files -f %name.lang
%doc -d ABOUT-NLS AUTHORS BUGS COPYING COPYING.DOC ChangeLog.gz NEWS README README.CVS THANKS TODO UPGRADE
%doc doc/faq.html doc/nanorc.sample
%_bindir/%name
%_bindir/r%name
%_datadir/%name/
%_infodir/%name.info.*
%_desktopdir/%name.desktop
%_miconsdir/%name.png
%_niconsdir/%name.png
%_liconsdir/%name.png
%config(noreplace) %_sysconfdir/nanorc

%changelog
* Sun Dec 23 2007 Artem Zolochevskiy <azol@altlinux.ru> 2.0.7-alt1
- Updated to version 2.0.7
  + nano is now licensed under GNU GPL v3 or later
  + documentation is now dual-licensed:
    GNU GPL v3 or later and the GNU FDL v1.2 or later

* Tue Oct 16 2007 Artem Zolochevskiy <azol@altlinux.ru> 2.0.6-alt3
- added missed Requires(post/preun):
  + install_info and uninstall_info (#13135)

* Mon Oct 01 2007 Artem Zolochevskiy <azol@altlinux.ru> 2.0.6-alt2
- switched to freedesktop menu:
  + replaced Debian menufile with Freedesktop one
- added 16x16, 32x32 and 48x48 icons to comply with
  ALTLinux IconPaths policy
- some spec improvements:
  + used %%url in Source tag
  + used macro from rpm-build-licenses for License tag

* Sat Apr 28 2007 Artem Zolochevskiy <azol@altlinux.ru> 2.0.6-alt1
- Updated to version 2.0.6

* Mon Apr 23 2007 Artem Zolochevskiy <azol@altlinux.ru> 2.0.5-alt1
- Updated to version 2.0.5

* Fri Apr 13 2007 Artem Zolochevskiy <azol@altlinux.ru> 2.0.4-alt1
- Updated to version 2.0.4

* Wed Feb 07 2007 Artem Zolochevskiy <azol@altlinux.ru> 2.0.3-alt1
- Updated to version 2.0.3

* Mon Dec 25 2006 Artem Zolochevskiy <azol@altlinux.ru> 2.0.2-alt1
- Updated to version 2.0.2
- Changed summary and description
- Added COPYING as symlink
- Added ABOUT-NLS, NEWS to package
- Compressed ChangeLog

* Mon Nov 20 2006 Slava Semushin <php-coder@altlinux.ru> 2.0.1-alt1
- 2.0.1

* Fri Nov 17 2006 Slava Semushin <php-coder@altlinux.ru> 2.0.0-alt2
- Added some changes from azol@:
  + enable smarthome in configuration file
  + enable syntax highlighting for POV-Ray
  + remove inutile spaces in configuration file
  + change section in menu file to "Applications/Editors"

* Sun Nov 12 2006 Slava Semushin <php-coder@altlinux.ru> 2.0.0-alt1
- Added global configuration file, which turns on
  (joint work with azol@):
  + autoindent (use auto-indentation)
  + const (constantly display the cursor position in the statusbar)
  + historylog (enable ~/.nano_history for saving and reading
    search/replace strings)
  + morespace (do not displaying empty line after titlebar)
  + mouse (enable mouse support)
  + nonewlines (don't add newlines to the ends of files)
  + nowrap (don't add newlines to the ends of files)
  + smooth (use smooth scrolling)
  + suspend (allow nano to be suspended)
  + enable syntax highlighting for nanorc, C/C++, HTML, TeX, quoted
    emails, patches, man pages, groff, Perl, Python, Ruby, Java,
    Assembler, Bash
- Added syntax highlighting (and enable by default) for PHP, XML, CSS
  and xorg.conf file (picked up from http://gentoo-wiki.com site)
- Added icon from Debian (idea from azol@)
- Change url in Source tag to official site

* Wed Nov 08 2006 Slava Semushin <php-coder@altlinux.ru> 2.0.0-alt0
- Updated to version 2.0.0 (#10246)
- Changed Packager to Artem Zolochevskiy aka azol@
- Added AUTHORS, BUGS, ChangeLog, README, THANKS, TODO, UPGRADE,
  faq.html and nanorc.sample to package
- Updated BuildRequires (build with libncursesw)
- Added full url to Source tag
- Added menu file
- Formatted %%description
- Spec cleanup
- Running make with --no-print-directory and --silent options
- Use %%find_lang for finding nanorc manual pages
- Using %%{un,}install_info for registry info pages (thanx to icesik@)
- Enable _unpackaged_files_terminate_build

* Wed Apr 26 2006 Dmitry Marochko <mothlike@altlinux.ru> 1.3.11-alt1
- New version
- Enabled extra functionality

* Sun Mar 19 2006 Dmitry Marochko <mothlike@altlinux.ru> 1.3.10-alt1
- Initial build for Sisyphus