# Installs in dir /usr %define prefix /usr %define sysconfdir /etc Summary: Generating random passwords Name: mysqlpasswd Version: 1.1.6 Release: 1 Source0: mysqlpasswd-%{version}.tar.gz Group: Amusements/Text Copyright: GNU GENERAL PUBLIC LICENSE URL: ftp://ics.p.lodz.pl/pub/databases/mysql/mysqlpasswd Vendor: Bartosz Lis BuildRoot: /var/tmp/mysqlpasswd-%{version}.root %description This program set password for a user to the database with the same name. If the database does not exist creates it. It makes also some sanity checks. %prep %setup ./configure --prefix=%{prefix} --sysconfdir=%{sysconfdir} %build make %install make DESTDIR=$RPM_BUILD_ROOT install %files %prefix/bin/* %config(noreplace) %sysconfdir/*