"Fossies" - the Fresh Open Source Software Archive

Member "hd2u-1.0.4/packaging/hd2u.spec" (1 Sep 2017, 9948 Bytes) of package /linux/privat/hd2u-1.0.4.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "hd2u.spec": 1.0.3_vs_1.0.4.

    1 # Copyright (C) 1999, 2000, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
    2 # 2008 Peter Hanecak <hany@hany.sk>
    3 #
    4 # This program is free software; you can redistribute it and/or
    5 # modify it under the terms of the GNU General Public License
    6 # as published by the Free Software Foundation; either version 2
    7 # of the License, or (at your option) any later version.
    8 #
    9 # This program is distributed in the hope that it will be useful,
   10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12 # GNU General Public License for more details.
   13 #
   14 # You should have received a copy of the GNU General Public License
   15 # along with this program; if not, write to the Free Software
   16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
   17 #
   18 # See the COPYING file for license information.
   19 
   20 %define name hd2u
   21 %define version 1.0.4
   22 
   23 Name: %{name}
   24 Version: %{version}
   25 Release: 1%{?dist}
   26 Summary: Converts DOS-style EOLs to UNIX-style EOLs and vice versa
   27 License: GPL
   28 Group: Applications/Text
   29 Vendor: Peter Hanecak <hany@hany.sk>
   30 Url: http://hany.sk/~hany/software/hd2u/
   31 Provides: dos2unix
   32 Obsoletes: dos2unix
   33 Prefix: %{_prefix}
   34 
   35 Source: %{name}-%{version}.tgz
   36 BuildRoot: %{_tmppath}/%{name}-root
   37 
   38 %description
   39 hd2u is "Hany's Dos2Unix convertor". It provides 'dos2unix'.
   40 
   41 'dos2unix' is filter used to convert DOS-style EOLs to UNIX-style EOLs and vice
   42 versa (EOL - End Of Line character). Aditionaly it can also handle files
   43 with Macintosh-style EOLs and convert them into other EOLs.
   44 
   45 %prep
   46 %setup
   47 
   48 %build
   49 %configure
   50 make dos2unix-optimized
   51 # test is not necessary when building optimized hd2u - optimized build runs also tests
   52 #make test
   53 
   54 %install
   55 rm -rf $RPM_BUILD_ROOT
   56 mkdir -p $RPM_BUILD_ROOT%{_bindir}
   57 make BUILD_ROOT="$RPM_BUILD_ROOT" install
   58 
   59 %clean
   60 rm -rf $RPM_BUILD_ROOT
   61 
   62 %files
   63 %defattr(-,root,root)
   64 %{_bindir}/dos2unix
   65 %doc AUTHORS COPYING CREDITS ChangeLog INSTALL NEWS README TODO
   66 
   67 %changelog
   68 * Fri Sep  1 2017 Peter Hanecak <hany@hany.sk> 1.0.4-1
   69 - README, configure.in, hd2u.spec: bumped-up version
   70 - NEWS: added info about this release
   71 - use getopt from glibc instead of popt
   72 - packaging/hd2u.spec: converted to UTF-8
   73 - Makefile.in: `make clean` removes also config.h
   74 
   75 * Wed Sep 10 2008 Peter Hanecak <hany@hany.sk> 1.0.3-1
   76 - README, configure.in, hd2u.spec: bumped-up version
   77 - NEWS: added info about this release
   78 - dos2unix.c: print "stdin" instead of "(null)" in verbose mode
   79 - dos2unix.c: if file type is undetermined (file without line
   80   endings or empty file), print so in verbose mode and do not try to
   81   convert such file
   82 - Makefile.in: "$^" changed into "$(@:%=%.c)" as the "$^" gets
   83   expanded into "dos2unix.c config.h" and that causes problem for
   84   gcc 2.95.3 ("gcc: Compilation of header file requested")
   85 
   86 * Tue Aug 28 2007 Peter Hanecak <hany@hany.sk> 1.0.2-1
   87 - README, configure.in, hd2u.spec: bumped-up version
   88 - NEWS: added info about this release
   89 
   90 * Thu Jul  5 2007 Peter Hanecak <hany@hany.sk>
   91 - dos2unix.c: added 'b' to 'fopen()' calls so that conversion is not
   92   confused on platforms like Cygwin
   93 
   94 * Sun Jan 28 2007 Peter Hanecak <hany@hany.sk>
   95 - added %%{?dist} into spec
   96 
   97 * Sun Jan 28 2007 Peter Hanecak <hany@hany.sk> 1.0.1-1
   98 - use profile-directed optimizations
   99 - updated email and URLs
  100 
  101 * Tue Mar 15 2005 Peter Hanecak <hanecak@megaloman.sk> 1.0.0-1
  102 - TODO: removed notice about big files being truncated
  103 - NEWS:
  104   - added info about this release
  105   - fixed few typos
  106 
  107 * Thu Oct 28 2004 Peter Hanecak <hanecak@megaloman.sk> 0.9.2-1
  108 - NEWS: updated
  109 
  110 * Mon Oct 25 2004 Peter Hanecak <hanecak@megaloman.sk>
  111 - Makefile.in: changed '$(CC) $(CFLAGS) -o $(TARGET) $(TARGET).c $(LIBS)' to
  112   '$(CC) $(CFLAGS) -o $@ $(@:%=%.c) $(LIBS)' (based on suggestion by Marty
  113   Leisner <mleisner@eng.mc.xerox.com>)
  114 - install-sh: updated from automake-1.8.3 package
  115 - INSTALL: added notice about popt-devel as suggested by max
  116 - README: fixed typo (thanks to N. Roeser <n-roeser@gmx.net> and Ryan
  117   Schmidt <hello-200407@ryandesign.com> for pointing out the mistake)
  118 - dos2unix.c: do not clear FT_BINARY flag from fileType when Mac line
  119   endings are detected which should avoid image or sound (or other binary)
  120   files to be confused with Mac text files (thanks to basic
  121   <basic@mozdev.org> and Caj Nordström <caj.nordstrom@beamex.com> for
  122   pointing out the bug and suggesting the fix)
  123 
  124 * Sun Apr 18 2004 Peter Hanecak <hanecak@megaloman.sk>
  125 - ChangeLog, README: fixed typos
  126 
  127 * Wed Apr 14 2004 Peter Hanecak <hanecak@megaloman.sk> 0.9.1-1
  128 - dos2unix.c: --version (-V) option added: display version
  129   information
  130 - config.h.in added (as created by autoheader)
  131 - configure.in:
  132   - incorporated changes sugested by configure.scan generated by autoscan
  133   - config.h is generated by configure
  134 - Makefile.in:
  135   - 'make cleanall' removes also cache directory created by 'autoconf
  136   - incorporated changes done to configure.in
  137 - README: added info about --version (-V) option
  138 
  139 * Fri Nov 14 2003 Peter Hanecak <hanecak@megaloman.sk> 0.9.0-1
  140 - dos2unix.c:
  141   - files in Mac format are now recognized; thanks to Sam Barnum
  142     <sbarnum@pointsystems.com> and max <max@oddjob.utias.utoronto.ca>
  143     for suggestion (and to max also for pushing me to actualy do that :)
  144   - new conversion types: MAC -> UNIX, UNIX -> MAC, DOS -> MAC and MAC -> DOS
  145   - when autodetected input format does not match input format suggested by
  146     conversion type option on command line, conversion type is automaticaly
  147     corrected
  148   - --force (-f) option, which supress above mentioned behaviour
  149 - install-sh: updated from automake-1.6 package
  150 - README: updated
  151 - TODO: what should be fixed till next stable release
  152 
  153 * Fri Oct  3 2003 Peter Hanecak <hanecak@megaloman.sk> 0.8.2-1
  154 - dos2unix.c:
  155   - read/write buffers implemented - increases performance about 9 times
  156   - message "File format '<file>':" changed to "File format of '<file>':"
  157 - TODO: updated
  158 
  159 * Wed Feb 26 2003 Peter Hanecak <hanecak@megaloman.sk> 0.8.1-1
  160 - dos2unix.c:
  161   - mkstemp() used instead of tmpnam()
  162   - temporary directory specified by TMPDIR or TMP environment variable
  163     used; if none of them is avialable, then "/tmp" is used
  164 - spec:
  165   - group changed from Utilities/Text to Applications/Text
  166   - s/Copyright/License
  167 
  168 * Tue May  7 2002 Peter Hanecak <hanecak@megaloman.sk>
  169 [0.8.0-1]
  170 - ChangeLog: fixed typo
  171 - README: updated "Usage" chapter
  172 - dos2unix.c: updated help
  173 - applied patch from Philip White <pwhite@mailhaven.com>
  174   (minor grammar corrections and miscellaneous beautifying in help & docs)
  175 
  176 * Fri Jan  4 2002 Peter Hanecak <hanecak@megaloman.sk>
  177 [0.7.2-1]
  178 - INSTALL: fixed info about changing prefix
  179 - Makefile.in: create bin directory before installing hd2u binary into it;
  180   this should solve the problem when using custom prefix in which 'bin'
  181   directory does not exists (thanks to Emanuele Olivetti <olivetti@itc.it>
  182   for reporting the problem)
  183 - dos2unix.c: fix gcc 2.96 warning: string length '687' is greater than the
  184   minimum length '509' ISO C89 is required to support
  185 
  186 * Sun Feb 11 2001 Peter Hanecak <hanecak@megaloman.sk>
  187 [0.7.1-1]
  188 - dos2unix.c: --skipbin (-b) switch added: binary files won't be converted
  189 - dos2unix.c: --test (-t): NO output (not even verbose)
  190 - dos2unix.c: conversion of input data from stdin works again
  191 - dos2unix.c: reworked convert(): conversion of input data from stdin works
  192   again; better separation of detection, verbose info output and other logic
  193 - dos2unix.c: rouge '\r' are reported but only conversion dos -> unix affects
  194   them (they are skipped)
  195 - dos2unix.c: directories when given as input are skipped
  196 
  197 * Sun Feb 11 2001 Peter Hanecak <hanecak@megaloman.sk>
  198 [0.7.0-1]
  199 - documentation updates
  200 
  201 * Wed Feb  7 2001 Rob Ginda <rginda@netscape.com>
  202 - dos2unix.c: more robust source format detection can detect binary files,
  203   mixed mode files, and files with no line endings at all
  204 - dos2unix.c: added automatic skipping of binary files
  205 - dos2unix.c: added --test mode to check filetype without converting
  206 - dos2unix.c: added --verbose option to show status messages while working
  207 - dos2unix.c: converted C++ style (//) comments to C style (/**/) (some C
  208   compilers will choke on //)
  209 - dos2unix.c: reorderd function definition to avoid prototypes
  210 - dos2unix.c: replaced hard tabs with 4 spaces
  211 - dos2unix.c: added emacs modeline
  212 
  213 * Sun Jan 21 2001 Peter Hanecak <hanecak@megaloman.sk>
  214 [0.6.0-1]
  215 - documentation: fixed typos
  216 - dos2unix.c: handle NULL when returned by tmpnam()
  217 - Makefile.in: added '-Wall -pedantic' to CFLAGS
  218 
  219 * Tue Oct  3 2000 Peter Hanecak <hanecak@megaloman.sk>
  220 [0.5.12-1]
  221 - documentation extended (popt) and updated (configure)
  222 - configure.in: check for getopt_long() function
  223 
  224 * Tue Sep 26 2000 Peter Hanecak <hanecak@megaloman.sk>
  225 [0.5.11-1]
  226 - configure.in: check for popt library
  227 
  228 * Mon Aug  7 2000 Peter Hanecak <hanecak@megaloman.sk>
  229 [0.5.10-1]
  230 - autoconfigure
  231 
  232 * Sat Aug  5 2000 Peter Hanecak <hanecak@megaloman.sk>
  233 [0.5.9-2]
  234 - --auto switch
  235 - do not touch files which are alredy in specified target format
  236 - spec: Prefix, %%{_tmppath} and %%{_bindir} used
  237 
  238 * Thu Nov 25 1999 Peter Hanecak <hanecak@megaloman.sk>
  239 [0.5.0-2]
  240 - added URL to spec
  241 - mostly typo fixes
  242 
  243 * Thu Nov 25 1999 Peter Hanecak <hanecak@megaloman.sk>
  244 [0.5.0]
  245 - renamed package to 'hd2u' to avoid conflicts with alredy existing
  246   dos2unix package(s) (is 'hd2u' original enough? :)
  247 - moved binary to '/usr/bin'
  248 - added some documentation
  249 - first public release
  250 
  251 * Thu Oct 21 1999 Peter Hanecak <hanecak@megaloman.sk>
  252 [0.5.0]
  253 - speed optimisation
  254 
  255 * Thu Oct 21 1999 Peter Hanecak <hanecak@megaloman.sk>
  256 [0.4.0]
  257 - coversion of file(s) specified as command line parameters
  258 
  259 * Tue Oct 19 1999 Peter Hanecak <hanecak@megaloman.sk>
  260 [0.3.0]
  261 - getopt used to process parameters
  262 - help displayed when incorect options
  263 
  264 * Sun Sep 26 1999 Peter Hanecak <hanecak@megaloman.sk>
  265 [0.3.0]
  266 
  267 * Fri Mar 26 1999 Peter Hanecak <hanecak@megaloman.sk>
  268 [0.2.0]
  269 - initial spec