Source: World Bank
Release: World Development Indicators
This series is a 5-year aggregation of the series https://fred.stlouisfed.org/series/POPTOTESA647NWDB used to calculate per capita versions of other 5-year series in FRED. The aggregation of series occurs at the end of the period in years that end in two or seven (i.e. 1972, 1977, 1982...).
World Bank, the original source, defines the original series as follows:
"Total population is based on the de facto definition of population, which counts all residents regardless of legal status or citizenship--except for refugees not permanently settled in the country of asylum, who are generally considered part of the population of their country of origin. The values shown are midyear estimates.
World Bank, Population, Total for Spain [POPTOTES52647NWDB], retrieved from FRED, Federal Reserve Bank of St. Louis; https://fred.stlouisfed.org/series/POPTOTES52647NWDB, March 24, 2018.